robbiehanson/CocoaAsyncSocket — pull request #26 by kylef (2012-02-16 05:51:26+00:00)
Title: Fix an issue where a refused connection will not be cleaned up properly

Socket's are only closed if there is a readSource and a writeSource.
But this isn't the case for failed connections.

This is the same patch as I submitted to https://code.google.com/p/cocoaasyncsocket/issues/detail?id=121