vapor-community / sockets

🔌 Non-blocking TCP socket layer, with event-driven server and client.
MIT License
575 stars 54 forks source link

Add timeout to connect #56

Closed czechboy0 closed 8 years ago

czechboy0 commented 8 years ago

Currently we can still hang on the call to connect. Let's add a timeout so that the caller can provide the max time to wait. Some examples here: http://stackoverflow.com/questions/2597608/c-socket-connection-timeout