-
Notifications
You must be signed in to change notification settings - Fork 171
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
RejectedExecutionException Occured in onMessage. #53
Comments
Hi, thanks for your report. Let me know how to reproduce if possible. |
Hello, sorry but for the moment, i can't reproduce.. |
Hi, I'm experiencing the same exception, but in onClose(), not onMessage() of RealWebSocket's reader implementation because ThreadPoolExecutor (replyExecutor) is not at all used in onMessage() but in on onPing() and onClose(). My only assumption is that ping response runner is already in the pool at the point of onClose request from the server so it throws an exception since it can only have one runner at the time. This issue definitely is occurring while using engine.io/socket.io but I rather think it is in the OkHttp library itself and not here... |
Just saw this thread after creating the issue #81 . I think what @mypplication said contributes to Out of Memory exceptions as well as mentioned there. For reproducing it, try connecting calling |
Closed due to inactivity, please reopen if needed. |
Same issue here > socketio/socket.io-client-java#295
This bug is the result of how you use the OkHttpClient object. In version 3 of OkHttp, do not recreate the instance OkHttpClient each use in your code:
https://github.com/socketio/engine.io-client-java/blob/master/src/main/java/io/socket/engineio/client/transports/WebSocket.java
The text was updated successfully, but these errors were encountered: