stream_input: avoid IO#close on client disconnect
commitf4005d5efc608e7d75371f0d0527041facd33f89
authorEric Wong <normalperson@yhbt.net>
Thu, 7 Nov 2013 20:10:01 +0000 (7 20:10 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 7 Nov 2013 20:10:01 +0000 (7 20:10 +0000)
treeb086729ef7901b9a430db7618b2f48f7cad05d5f
parenta1aa5c97289df09a90831c4d9bf6e22ac351bdd8
stream_input: avoid IO#close on client disconnect

This can avoid IOError from being seen by the application, and also
reduces points where IO#close may be called.  This is a good thing
if we eventually port this code into a low-level server like
cmogstored where per-client memory space is defined by FD number of
a client.

Reported-by: Andrew Hobson <ahobson@gmail.com>
lib/unicorn/stream_input.rb