how can I detect liveliness of a socket connection?
posted 9 years ago
I have a server and a client. Client is obtaining messages from server through a socket and is a slow consumer of messages. When the the server is stopped, I end up getting stale messages. Please suggest a way to overcome this. Can I check from client side if the server side socket is still alive?
did you receive an exception? when a socket is closed and you are reading, you can receive an Exception. Sorry I'm mexican and I'dont write correct, sometimes. [ June 09, 2007: Message edited by: Miguel Ivan Gutierrez ]