See https://github.com/robbiehanson/CocoaAsyncSocket/pull/254