-
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
SSL Websockets give rejectedExecution exception #315
Comments
Bump. Having the same exact problem. :( It seems to occur when a socket connection is closed. Or shortly after. |
Strange issue, only happens when an SSL client is disconnecting. |
This closes the ThreadPool shared between all the SSLSocketChannel2s, preventing any further call to processHandshake in another one. |
Partially fixed by #216, just need to call the new shutdown method. |
Related: #270 |
Fixed by #375 aswell |
@marci4 this is fixed. |
@bendem thx for the response. Closing it |
Wish I could use this library, but it doesn't seem to work with SSL :(
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@270014db rejected from java.util.concurrent.ScheduledThreadPoolExecutor@7dbd8f68[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
FINALLY
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
at java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:632)
at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:678)
at org.java_websocket.SSLSocketChannel2.consumeDelegatedTasks(SSLSocketChannel2.java:175)
at org.java_websocket.SSLSocketChannel2.processHandshake(SSLSocketChannel2.java:140)
at org.java_websocket.SSLSocketChannel2.(SSLSocketChannel2.java:82)
at org.java_websocket.server.DefaultSSLWebSocketServerFactory.wrapChannel(DefaultSSLWebSocketServerFactory.java:39)
at org.java_websocket.server.WebSocketServer.run(WebSocketServer.java:321)
at java.lang.Thread.run(Thread.java:745)
The text was updated successfully, but these errors were encountered: