apcera/gnatsd — pull request #44 by fraenkel (2014-09-12 20:49:18+00:00)
Title: Let readLoop do the closeConnection magic on any error

clearConnection will close the socket, but defer to readLoop to clean
up the client's connection