Skip to content

Commit

Permalink
fix(websocket): increasing the timeout for messages to 2s
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Oct 3, 2024
1 parent 3838dad commit 91a4e6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void write(String s) {
if (session != null && session.isOpen()) {
Future<Void> f = session.getRemote().sendStringByFuture(s);
try {
f.get(500, TimeUnit.MILLISECONDS);
f.get(2, TimeUnit.SECONDS);
} catch (TimeoutException e){
log.fine("Sending timed out. Closing connection to " + session.getRemoteAddress());
session.disconnect();
Expand Down

0 comments on commit 91a4e6f

Please sign in to comment.