-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE during reconnect #1364
Comments
While was trying to reproduce I identified another bug with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It's possible to get NPE in
reconnectBlocking()
, due to a race with previously running client connection thread.The race happens due to
closeLatch
countdown called beforeconnectReadThread
is set to null in runconnectReadThread
set to null atWebSocketClient.java:526
engine.closeConnection
WebSocketClient.java:524
To Reproduce
Steps to reproduce the behavior:
reconnectBlocking()
in a loop until NPEExpected behavior
No NPE on
reconnectBlocking()
Debug log
Environment(please complete the following information):
The text was updated successfully, but these errors were encountered: