Skip to content

improve: checking ev->pending_eof before peeking data from tcp buffer#69

Open
tokers wants to merge 1 commit into
openresty:masterfrom
tokers:improve/pending_eof
Open

improve: checking ev->pending_eof before peeking data from tcp buffer#69
tokers wants to merge 1 commit into
openresty:masterfrom
tokers:improve/pending_eof

Conversation

@tokers

@tokers tokers commented Jun 30, 2019

Copy link
Copy Markdown

No description provided.

@tokers

tokers commented Jun 30, 2019

Copy link
Copy Markdown
Author

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

@spacewander

Copy link
Copy Markdown
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

agentzh commented Jul 1, 2019

Copy link
Copy Markdown
Member

So ngx_http_lua_module also needs a patch.

@tokers

tokers commented Jul 1, 2019

Copy link
Copy Markdown
Author

So ngx_http_lua_module also needs a patch.

OK, I will push a patch to that repo.

@tokers

tokers commented Jul 1, 2019

Copy link
Copy Markdown
Author

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
Copy Markdown
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

tokers commented Jul 1, 2019

Copy link
Copy Markdown
Author

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants