Testing server sockets
Posted: Sun Aug 08, 2010 12:11 pm
I wonder if someone on the forum can point me in the right direction.
I have written a client server database application using sockets. I have found that for one reason or another, a client connection may close but the socket remains open on the server side. Attempts by the client to re-establish a connection are then seemingly blocked.
Is there a way for the server to test its open sockets to see if they are still valid and to close them if there is no active client connection?
Alex
I have written a client server database application using sockets. I have found that for one reason or another, a client connection may close but the socket remains open on the server side. Attempts by the client to re-establish a connection are then seemingly blocked.
Is there a way for the server to test its open sockets to see if they are still valid and to close them if there is no active client connection?
Alex