You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use GCDAsyncSocket to connect to an own TCP server of mine. I noticed that the socket never fails nor gives any error when the hostname is invalid and does not exist:
Nor are the timeout callbacks called, even when running for a long time. Any way to work around this? The hostnames I've tried with do not resolve to anything at all and even when trying with an invalid IP there is no error.
The text was updated successfully, but these errors were encountered:
You need to listen for the socketDidDisconnect:withError: delegate callback. The initial connectToHost:onPort: call just does some basic validation and initiates the connect, later you'll get the error callback mentioned before or socket:didConnectToHost:port: callback.
I use GCDAsyncSocket to connect to an own TCP server of mine. I noticed that the socket never fails nor gives any error when the hostname is invalid and does not exist:
Nor are the timeout callbacks called, even when running for a long time. Any way to work around this? The hostnames I've tried with do not resolve to anything at all and even when trying with an invalid IP there is no error.
The text was updated successfully, but these errors were encountered: