stream_input: call shutdown(2) if a client EOFs on us
commit4551c8ad4d63d4031c618f76d39532b39e88f9be
authorEric Wong <normalperson@yhbt.net>
Fri, 27 Apr 2012 21:42:38 +0000 (27 14:42 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 27 Apr 2012 21:42:38 +0000 (27 14:42 -0700)
tree970ae12e177777c983b528740fb7d054fec5cfb5
parent04901da5ae0b4655c83be05d24ae737f1b572002
stream_input: call shutdown(2) if a client EOFs on us

In case the Rack app forks before a client upload is complete,
shutdown(2) the socket to ensure the client isn't attempting to
read from us (even if it explicitly stopped writes).
lib/unicorn/stream_input.rb