TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.53k stars 2.58k forks source link

If the client does not respond for a long time when send data to the client, how to timeout to interrupt execution? #1289

Open odiwml147 opened 1 year ago

odiwml147 commented 1 year ago

When I send a message to the client, the client does not respond for a long time due to some reasons, which causes the server thread to block all the time. I am worried about causing other problems, so I want to timeout to interrupt the execution.