|
From: | Massimo Balestri |
Subject: | Re: Detecting dead connection with TCPSession? |
Date: | Thu, 04 Apr 2002 09:30:15 +0200 |
Hi,
I'm writing a simple socket server that accepts connections on a socket by creating TCPSessions. Currently, my server will accept a connection from a client, but if the client "dies", or even closes down gracefully, my server's TCPSession is none the wiser.
I've got the server's TCPSession checking the following conditions periodically (i.e. every 1second):
- isActive()
- isConnected()
- tcp()->good()
- getErrorNumber() == 0
None of these checks evaluate to false... I was expecting isConnected() to tell me that the connection was bad, but it didn't.
Any ideas what I should do so that my server's TCPSession can know when the client has gone away?
Thanks a million,
Tyler
_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp
[Prev in Thread] | Current Thread | [Next in Thread] |