>The safest way is to PostMessage a custom message from SessionClosed event >and reconnect from the corresponding event handler.
Well, that's exactly what I'm doing: if (not FInternalClose) and (FState in [csConnected, csRequesting, csReceivingData]) then PostState(csReconnect); So you recommend not to use immediate close? But according to the log I provided earlier, every routine is completed, even SocketSessionClosed is called. I still suspect Linger options strongly. -- Anton -- 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