facebook/nifty — pull request #63 by andrewcox (2013-05-22 17:20:51+00:00)
Title: Skip writes to disconnected clients

Found when running load tester, having a bunch of clients from a load generator sending requests, and then killing the load generator... there were a TON of ClosedChannelExceptions.

To cut down on this, we can skip trying to send a reply if we already know the remote end was disconnected.