benoitc/gunicorn — pull request #874 by tilgovi (2014-09-06 01:41:44+00:00)
Title: Shutdown socket writes before close

Calling shutdown(2) with SHUT_WR before close(2) ensures that a FIN
packet is sent before any RST packet. Doing so ensures that clients
and proxies get a clean shutdown signal when the server terminates the
connection while an upload is pending.

Fix #872