Skip to content

Conversation

@tokers
Copy link

@tokers tokers commented Jun 30, 2019

No description provided.

@tokers
Copy link
Author

tokers commented Jun 30, 2019

See the relevant issue: openresty/stream-lua-nginx-module#167 for details.

@spacewander
Copy link
Member

Look like the original ngx_http_lua_check_broken_connection is modified from ngx_http_upstream_check_broken_connection in 2012. In 2013, Nginx added the NGX_USE_EPOLL_EVENT check to fix https://trac.nginx.org/nginx/ticket/320.
However, this code doesn't synchronize the fix.

@agentzh
Copy link
Member

agentzh commented Jul 1, 2019

So ngx_http_lua_module also needs a patch.

@tokers
Copy link
Author

tokers commented Jul 1, 2019

So ngx_http_lua_module also needs a patch.

OK, I will push a patch to that repo.

@tokers
Copy link
Author

tokers commented Jul 1, 2019

Look like the original ngx_http_lua_check_broken_connection is modified from ngx_http_upstream_check_broken_connection in 2012. In 2013, Nginx added the NGX_USE_EPOLL_EVENT check to fix https://trac.nginx.org/nginx/ticket/320.
However, this code doesn't synchronize the fix.

Sorry, I can't capture the words. What means of "this code doesn't synchronize the fix"? This patch mainly referenced from ngx_http_upstream_check_broken_connection.

@spacewander
Copy link
Member

@tokers
ngx_http_lua_check_broken_connection doesn't have this patch because it is written in 2012,
while this patch is added to ngx_http_lua_check_broken_connection in 2013.

@tokers
Copy link
Author

tokers commented Jul 1, 2019

@tokers
ngx_http_lua_check_broken_connection doesn't have this patch because it is written in 2012,
while this patch is added to ngx_http_lua_check_broken_connection in 2013.

OK 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants