Method: Unicorn::Configurator#check_client_connection
- Defined in:
- lib/unicorn/configurator.rb
#check_client_connection(bool) ⇒ Object
When enabled, unicorn will check the client connection by writing the beginning of the HTTP headers before calling the application.
This will prevent calling the application for clients who have disconnected while their connection was queued.
This only affects clients connecting over Unix domain sockets and TCP via loopback (127...*). It is unlikely to detect disconnects if the client is on a remote host (even on a fast LAN).
This option cannot be used in conjunction with :tcp_nopush.
499 500 501 |
# File 'lib/unicorn/configurator.rb', line 499 def check_client_connection(bool) set_bool(:check_client_connection, bool) end |