properly half-close both sides of the HTTP connection
authorLunar <lunar@anargeek.net>
Wed, 29 Feb 2012 21:19:03 +0000 (22:19 +0100)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 09:12:08 +0000 (10:12 +0100)
commit882e125236f1084f11d94886a1a4a4a01f86755b
tree944bbe69b6e4b2c12a53a81e8c2a675878d81b21
parent11929b4ca64a877da1fbe3ef4e48248c55c5772a
properly half-close both sides of the HTTP connection

Half-closing the write part first and draining our input makes sure the client
will properly receive an error message instead of TCP RST (a.k.a. "Connection
reset by peer") when we interrupt it in the middle of a POST request.
config.ru