[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Detecting dead connection with TCPSession?
From: |
Austen, Tyler |
Subject: |
Detecting dead connection with TCPSession? |
Date: |
Mon, 1 Apr 2002 14:17:27 -0500 |
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
- Detecting dead connection with TCPSession?,
Austen, Tyler <=