http_server: ignore ENOTCONN (mostly from shutdown(2))
authorEric Wong <normalperson@yhbt.net>
Fri, 27 Apr 2012 18:48:16 +0000 (11:48 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 27 Apr 2012 18:48:16 +0000 (11:48 -0700)
commit04901da5ae0b4655c83be05d24ae737f1b572002
tree0cdf4f8772ab82a33eae232b368142910f018e0a
parent8c1aff1e6335f8a55723907e2661dcb09ea16205
http_server: ignore ENOTCONN (mostly from shutdown(2))

Since there's nothing unicorn can do to avoid this error
on unconnected/halfway-connected clients, ignoring ENOTCONN
is a safe bet.

Rainbows! has long had this rescue as it called getpeername(2)
on untrusted sockets
lib/unicorn/http_server.rb