nginx/src
Maxim Dounin c94c24b177 Fixed TCP_DEFER_ACCEPT handling (ticket #353).
Backed out 05a56ebb084a, as it turns out that kernel can return connections
without any delay if syncookies are used.  This basically means we can't
assume anything about connections returned with deferred accept set.

To solve original problem the 05a56ebb084a tried to solve, i.e. to don't
wait longer than needed if a connection was accepted after deferred accept
timeout, this patch changes a timeout set with setsockopt(TCP_DEFER_ACCEPT)
to 1 second, unconditionally.  This is believed to be enough for speed
improvements, and doesn't imply major changes to timeouts used.

Note that before 2.6.32 connections were dropped after a timeout.  Though
it is believed that 1s is still appropriate for kernels before 2.6.32,
as previously tcp_synack_retries controlled the actual timeout and 1s results
in more than 1 minute actual timeout by default.
2014-01-28 15:40:46 +04:00
..
core Fixed TCP_DEFER_ACCEPT handling (ticket #353). 2014-01-28 15:40:46 +04:00
event SSL: fixed $ssl_session_id possible segfault after 97e3769637a7. 2014-01-23 18:32:26 +04:00
http Fixed TCP_DEFER_ACCEPT handling (ticket #353). 2014-01-28 15:40:46 +04:00
mail Mail: fixed passing of IPv6 client address in XCLIENT. 2014-01-17 22:06:04 +04:00
misc Fixed compilation with -Wmissing-prototypes. 2012-07-24 15:09:54 +00:00
mysql Copyright updated. 2012-01-18 15:07:43 +00:00
os Win32: support for UTF-16 surrogate pairs (ticket #457). 2014-01-04 03:32:15 +04:00