Skip to content

Commit

Permalink
synced to 856cea70787351d8230882f2b66e518793e59ba4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx committed Aug 16, 2017
1 parent 5cccec2 commit 20a6186
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/api/ngx_stream_lua_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

#include <nginx.h>
#include <ngx_core.h>
#include <ngx_http.h>





#include <lua.h>
#include <stdint.h>
Expand Down
4 changes: 3 additions & 1 deletion src/ngx_stream_lua_probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>





#if defined(NGX_DTRACE) && NGX_DTRACE
Expand Down
6 changes: 4 additions & 2 deletions src/ngx_stream_lua_sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ ngx_stream_lua_ngx_sleep(lua_State *L)
void
ngx_stream_lua_sleep_handler(ngx_event_t *ev)
{
ngx_connection_t *c;


ngx_stream_lua_request_t *r;
ngx_stream_lua_ctx_t *ctx;

Expand All @@ -112,7 +113,8 @@ ngx_stream_lua_sleep_handler(ngx_event_t *ev)
coctx = ev->data;

r = coctx->data;
c = r->connection;



ctx = ngx_stream_lua_get_module_ctx(r, ngx_stream_lua_module);

Expand Down
10 changes: 7 additions & 3 deletions src/ngx_stream_lua_socket_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,10 @@ ngx_stream_lua_socket_empty_resolve_handler(ngx_resolver_ctx_t *ctx)
static void
ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx)
{
ngx_stream_lua_request_t *r;
ngx_connection_t *c;
ngx_stream_lua_request_t *r;



ngx_stream_upstream_resolved_t *ur;
ngx_stream_lua_ctx_t *lctx;
lua_State *L;
Expand All @@ -796,7 +798,9 @@ ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx)

u = ctx->data;
r = u->request;
c = r->connection;



ur = u->resolved;

ngx_log_debug0(NGX_LOG_DEBUG_STREAM, c->log, 0,
Expand Down
10 changes: 7 additions & 3 deletions src/ngx_stream_lua_socket_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,10 @@ ngx_stream_lua_socket_udp_setpeername(lua_State *L)
static void
ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx)
{
ngx_stream_lua_request_t *r;
ngx_connection_t *c;
ngx_stream_lua_request_t *r;



ngx_stream_upstream_resolved_t *ur;
ngx_stream_lua_ctx_t *lctx;
lua_State *L;
Expand All @@ -445,7 +447,9 @@ ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx)

u = ctx->data;
r = u->request;
c = r->connection;



ur = u->resolved;

ngx_log_debug0(NGX_LOG_DEBUG_STREAM, c->log, 0,
Expand Down

0 comments on commit 20a6186

Please sign in to comment.