unicorn 4.5.0pre1 - check_client_connection optionv4.5.0pre1
authorEric Wong <normalperson@yhbt.net>
Thu, 29 Nov 2012 23:00:45 +0000 (23:00 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 29 Nov 2012 23:00:45 +0000 (23:00 +0000)
commit32333a4d233f73f6fc9d904301f97a4406c446fa
treefa26fda9434f413712acbf0cebc8a5f804253b4f
parent90db7b14eab449da8cef4ef22ab76ae00f654361
unicorn 4.5.0pre1 - check_client_connection option

The new check_client_connection option allows unicorn to detect
most disconnected clients before potentially expensive
application processing begins.

This feature is useful for applications experiencing spikes of
traffic leading to undesirable queue times, as clients will
disconnect (and perhaps even retry, compounding the problem)
before unicorn can even start processing the request.

To enable this feature, add the following line to a unicorn
config file:

  check_client_connection true

A huge thanks to Tom Burns for implementing and testing this
change in production with real traffic (including mitigating
an unexpected DoS attack).
GIT-VERSION-GEN
lib/unicorn/const.rb