[twsocket] SslWSocketServer and SslWSocket KEEPALIVE
Hi guys, Could you please inform, What is the best way to use in order to be able to keep alive both server and client? I would like to keep them both alive. Is it custom? or systemon? or off? How about interval? Thanks -daniel -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SslWSocketServer and SslWSocket KEEPALIVE
What is the best way to use in order to be able to keep alive both server and client? Only the client matters, ignore the server. Just design your protocol so the client sends regular packets, at least one every five minutes, I sent them each minute, with the server returning an acknowledgement packet (as I've explained twice already) that the client checks. If the server does not receive packets for say three times the interval, it forcibly closes the connection. If the client does not get a response, it retries, then closes the connection and retries. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SslWSocketServer and SslWSocket KEEPALIVE
Thanks Angus, I think five minutes will be just good for me :) What is the best way to use in order to be able to keep alive both server and client? Only the client matters, ignore the server. Just design your protocol so the client sends regular packets, at least one every five minutes, I sent them each minute, with the server returning an acknowledgement packet (as I've explained twice already) that the client checks. If the server does not receive packets for say three times the interval, it forcibly closes the connection. If the client does not get a response, it retries, then closes the connection and retries. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be