Shopify

What Does Your Webserver Do When a User Hits Refresh? - Shopify

Mar 19, 2013
What Does Your Webserver Do When a User Hits Refresh? - Shopify
SummaryAI, from the source post

This post details a specific patch to the Unicorn webserver that adds a `check_client_connection` configuration option. This option allows Unicorn to write a small amount of data to the client socket before rendering a response. If the write fails (indicating a disconnected client), the request is dropped, preventing wasted application server resources. This directly addresses the problem of HTTP 499 responses and the snowball effect during flash sales.

More from the Webserver Connection Handling and Request Dropping trail