Skip to content

Commit 9531e5e

Browse files
committed
bugfix: removed the dead code for the old NGX_THREADS mode which breaks the new nginx (1.7.11+) with thread pool support. thanks Tatsuhiko Kubo for the patch in openresty#475.
1 parent e7a7079 commit 9531e5e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/ngx_http_lua_socket_udp.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,17 +1400,6 @@ ngx_http_lua_udp_connect(ngx_udp_connection_t *uc)
14001400

14011401
c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1);
14021402

1403-
#if (NGX_THREADS)
1404-
1405-
/* TODO: lock event when call completion handler */
1406-
1407-
rev->lock = &c->lock;
1408-
wev->lock = &c->lock;
1409-
rev->own_lock = &c->lock;
1410-
wev->own_lock = &c->lock;
1411-
1412-
#endif
1413-
14141403
#if (NGX_HTTP_LUA_HAVE_SO_PASSCRED)
14151404
if (uc->sockaddr->sa_family == AF_UNIX) {
14161405
struct sockaddr addr;

0 commit comments

Comments
 (0)