robbiehanson/CocoaAsyncSocket — Issue #33: Reinitialize connection after device removal
Author: Zyphrax
Created: 2012-03-05 09:30:10+00:00
State: open

In my setup I'm using GCDAsyncSocket (ARC branche) to communicate with a printer behind an Airport Express. This works fine and I've got it working pretty well.

However it is unable to recover the connection when I pull out the Airport Express and put it back in. When I plug the Airport Express back in it will restore the connection, but the first read I do will simply timeout (so it isn't a proper connection).

The only solution is to restart the iOS Simulator.

Is there some way to force the release of a socket? Or force it to timeout?