TooTallNate / Java-WebSocket

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

java.lang.InterruptedException: null #1412

Closed bai-xuan closed 3 months ago

bai-xuan commented 4 months ago

Describe what you would like to know or do A clear and concise description of what the problem is.

After the connection is disconnected, try the failure caused by the continuous connection

Describe the solution you'd considered A clear and concise description of any solutions you've considered.

This is the log of printing: image

This is the code that is reconflowing: image

Additional context Add any other context or links about the question here.

I wonder if the code for disconnecting and reconnecting has data that has not been cleaned up. The problem is that 'pong' is not received within the corresponding time, and then it is automatically disconnected. I tried to call 'reconnectBlocking', but received 'java. lang.InterruptedException: null' error

bai-xuan commented 4 months ago

I seem to have found a problem. Is this a code problem or a problem on my part? image

image

bai-xuan commented 4 months ago

Sorry, I accidentally ordered the problem that I just accidentally ordered the problem. I have reached this problem again.

marci4 commented 3 months ago

Yeah reconnecting inside the onClose can not work.