Skip to content

Commit a5ac9fa

Browse files
committed
bugfix: fake connections did not carry a proper connection number. thanks Piotr Sikora for the patch.
1 parent b4609c1 commit a5ac9fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngx_http_lua_util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3829,6 +3829,7 @@ ngx_http_lua_create_fake_connection(ngx_pool_t *pool)
38293829
}
38303830

38313831
c->fd = (ngx_socket_t) -1;
3832+
c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1);
38323833

38333834
if (pool) {
38343835
c->pool = pool;

0 commit comments

Comments
 (0)