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

lose data without connection close ballback #1392

Closed yummyChina closed 8 months ago

yummyChina commented 9 months ago

sometimes data lost,but connection is normal

marci4 commented 9 months ago

Hello @yummyChina

Please use the Bug Report template provided at https://raw.githubusercontent.com/TooTallNate/Java-WebSocket/master/.github/ISSUE_TEMPLATE/bug_report.md and do not forget link to the example application!

Without a full bug report this will be closed.

Best regards, marci4

yummyChina commented 8 months ago

More information: 1 both server and client run on android device 2 socket.setReuseAddr(true); 3 when repeat connection several times. send data with no response

yummyChina commented 8 months ago

when establish the connect ,we should open server first but when disconnect ,we should close client first