facebook/tornado — pull request #664 by toffaletti (2013-01-09 02:54:18+00:00)
Title: Use TCP_DEFER_ACCEPT when available

Without this option the first read() on the newly accepted socket returns EAGAIN and it goes back into the event loop to accept more connections. This can cause connections to be unevenly distributed across forked processes. For example, with 48 worker processes only 4 end up with all the connections. This only really matters when dealing with long-lived persistent connections, for example if you have a load balancing proxy server in front of tornado.