TCP Socket Disconnect

I’m having a issue with a EasyTCPSocket, on a Linux machine is a Xojo App using ServerSocket to assign EasyTCPSockets and another Xojo app on windows is connecting to it.

The above is all working fine can send and receive messages between them. However in the client machine it sometimes gets error 102 disconnect when this happens I have it auto connects again which is fine and the server issues it a new socket.

Now for the issue when the disconnect happens on the client no error is received on the server and the socket stays open causing me to run out of available sockets, is this normal or should I be sending messages to the client check it’s still there?

You should also be getting a disconnect error on the server.

In this case that doesn’t seem to be working, If on the client I issue a .close then the server correctly sees a close if however the connection just seems to drop the server sees nothing.

My workout has been to scan through the open sockets sending a request and checking for a response, no response means connection is dead.

If it makes any difference the server is a Web App

Please file a bug report with a sample project in Feedback.