Skip to content

Commit 166b10e

Browse files
committed
Fixed Websocket Server freeze on SSLException
Fix for TooTallNate#433
1 parent 406d1ed commit 166b10e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/org/java_websocket/server/WebSocketServer.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,10 @@ public void run() {
321321
allocateBuffers( w );
322322
continue;
323323
} catch (IOException ex) {
324-
if (w.key != null)
325-
w.key.cancel();
324+
if( w.key != null )
325+
w.key.cancel();
326+
327+
handleIOException( w.key, null, ex );
326328
}
327329
continue;
328330
}
@@ -464,7 +466,7 @@ private void handleIOException( SelectionKey key, WebSocket conn, IOException ex
464466
// there is nothing that must be done here
465467
}
466468
if( WebSocketImpl.DEBUG )
467-
System.out.println( "Connection closed because of" + ex );
469+
System.out.println("Connection closed because of " + ex);
468470
}
469471
}
470472
}

0 commit comments

Comments
 (0)