When using the internet component or internet API I could not find a reliable way to detect a broken socket to an internet adress. Once the connection is broken by the external endpoint, the broken socket can only be detected by writing to the socket, not by reading.
This makes writing a good program very difficult as it would be impractical to send a ping every second just to detect if the socket is still alive.
Is there any possibility I did not see? Or is none implemented?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
When using the internet component or internet API I could not find a reliable way to detect a broken socket to an internet adress. Once the connection is broken by the external endpoint, the broken socket can only be detected by writing to the socket, not by reading.
This makes writing a good program very difficult as it would be impractical to send a ping every second just to detect if the socket is still alive.
Is there any possibility I did not see? Or is none implemented?
Link to post
Share on other sites