diff --git a/src/ngx_stream_lua_sleep.c b/src/ngx_stream_lua_sleep.c index 060eccf2..88b5cca2 100644 --- a/src/ngx_stream_lua_sleep.c +++ b/src/ngx_stream_lua_sleep.c @@ -102,6 +102,14 @@ void ngx_stream_lua_sleep_handler(ngx_event_t *ev) { +#if (NGX_DEBUG) + + + ngx_connection_t *c; + + +#endif + ngx_stream_lua_request_t *r; ngx_stream_lua_ctx_t *ctx; @@ -115,6 +123,14 @@ ngx_stream_lua_sleep_handler(ngx_event_t *ev) r = coctx->data; +#if (NGX_DEBUG) + + + c = r->connection; + + +#endif + ctx = ngx_stream_lua_get_module_ctx(r, ngx_stream_lua_module); diff --git a/src/ngx_stream_lua_socket_tcp.c b/src/ngx_stream_lua_socket_tcp.c index c861048b..a42e1e24 100644 --- a/src/ngx_stream_lua_socket_tcp.c +++ b/src/ngx_stream_lua_socket_tcp.c @@ -780,6 +780,14 @@ ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx) ngx_stream_lua_request_t *r; +#if (NGX_DEBUG) + + + ngx_connection_t *c; + + +#endif + ngx_stream_upstream_resolved_t *ur; ngx_stream_lua_ctx_t *lctx; @@ -800,6 +808,14 @@ ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx) r = u->request; +#if (NGX_DEBUG) + + + c = r->connection; + + +#endif + ur = u->resolved; diff --git a/src/ngx_stream_lua_socket_udp.c b/src/ngx_stream_lua_socket_udp.c index 6723da40..925764a0 100644 --- a/src/ngx_stream_lua_socket_udp.c +++ b/src/ngx_stream_lua_socket_udp.c @@ -429,6 +429,14 @@ ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx) ngx_stream_lua_request_t *r; +#if (NGX_DEBUG) + + + ngx_connection_t *c; + + +#endif + ngx_stream_upstream_resolved_t *ur; ngx_stream_lua_ctx_t *lctx; @@ -449,6 +457,14 @@ ngx_stream_lua_socket_resolve_handler(ngx_resolver_ctx_t *ctx) r = u->request; +#if (NGX_DEBUG) + + + c = r->connection; + + +#endif + ur = u->resolved;