]> git.kaiwu.me - nginx.git/commit
Respect the new behavior of TCP_DEFER_ACCEPT.
authorValentin Bartenev <vbart@nginx.com>
Thu, 7 Mar 2013 17:59:27 +0000 (17:59 +0000)
committerValentin Bartenev <vbart@nginx.com>
Thu, 7 Mar 2013 17:59:27 +0000 (17:59 +0000)
commit4815b3b2ee53687e60a6bf148aaf000a17a9a9b9
tree064157cc270f40fd3517ddb81814a0ec66ecb455
parent3e5aaee82878a3ddb0caa5af6375ea4c25e7bb13
Respect the new behavior of TCP_DEFER_ACCEPT.

In Linux 2.6.32, TCP_DEFER_ACCEPT was changed to accept connections
after the deferring period is finished without any data available.
(Reading from the socket returns EAGAIN in this case.)

Since in nginx TCP_DEFER_ACCEPT is set to "post_accept_timeout", we
do not need to wait longer if deferred accept returns with no data.
src/http/ngx_http_request.c