Skip to content

Commit 22d57d3

Browse files
committed
fix the request_id absent from the open event in the websocket log
1 parent 5bb966d commit 22d57d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ngx_http_websocket_stat_module.c

+2
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ ngx_http_websocket_stat_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
402402
if (ctx == NULL) {
403403
return NGX_HTTP_INTERNAL_SERVER_ERROR;
404404
}
405+
template_ctx.ws_ctx = ctx;
406+
405407
const char *request_id_str = get_core_var(r, "request_id");
406408
ctx->connection_id.data = ngx_pcalloc(r->pool, UID_LENGTH + 1);
407409
ctx->connection_id.len = UID_LENGTH;

0 commit comments

Comments
 (0)