mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:56:53 +00:00
Close WebSockets "harshly" if a close frame write fails
This commit is contained in:
1 parent
767f6a90e0
commit
e53a9f3f1a
2 files changed
+12
-21
No files matched your search
+1
-7
@@ -508,13 +508,7 @@ public class WebSocketConnection implements ClientEventListener {
|
||||
message = "OK";
|
||||
}
|
||||
|
||||
try {
|
||||
client.close(code, message);
|
||||
} catch (final Exception e) {
|
||||
logger.warn("Orderly close failed", e);
|
||||
|
||||
client.hardDisconnectQuietly();
|
||||
}
|
||||
client.close(code, message);
|
||||
}
|
||||
|
||||
private record StoredMessageInfo(UUID guid, long serverTimestamp) {
|
||||
|
||||
Reference in new issue
Block a user