This project has moved. For the latest updates, please go here.

Client do reconnect checks when server disconnects?

Sep 28, 2012 at 5:07 PM

I know you are a busy person. I too have a wife, kid, job, etc. If you can give me some guidance on the best place to implement a reconnect attempt timer that would be awesome.


Sep 28, 2012 at 7:17 PM

I don't mind getting questions. But sometimes I let them sit for a few days... :)

Check out my TCP/IP FAQ, especially the section on error handling.

As a general rule, I recommend closing the socket immediately and then starting a 1-second timer that will re-establish the connection.