> I would like to know how to detect a client's broken link in an
> TWsocketserver application. Not a closed connection but really a 
> broken one.

An idle TCP connection does not send any data, so you will not know it's
broken until it times out failing to send data.  

You can enable keep alive to send stuff regularly and force an error. 

You always get session closed, even for a clean close or failed open so
you need to check the error number. 

Servers should also timeout idle connections, the latest wsocket has
various timers for such purposes. 

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

Reply via email to