diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-03 17:00:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-03 20:29:03 +0200 |
commit | 8f7d3d0e39025b6019922b62fc60961e09c5296d (patch) | |
tree | 74cb6c1edb4db31752c95007eba41cef8852bae0 | |
parent | b4b2f1a58a888855a03a3d4d5c2104350e05b1a9 (diff) |
each websocket URP message is taking a full second
because the data written here doesn't appear to the reader
on the other end until a full second expires.
https: //bugs.openjdk.org/browse/JDK-8014239
Change-Id: I9b6f4d51562f4dd0866ff0fccd5951b1efe38f25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156488
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java index 16a5ad17f1e6..a3aed227c81d 100644 --- a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java +++ b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java @@ -278,6 +278,7 @@ public class WebsocketConnection extends WebSocketClient implements XConnection, try { _inputStreamWriter.write(messageBytes); + _inputStreamWriter.flush(); } catch (IOException e) { notifyListeners_error(new com.sun.star.uno.Exception(e)); return; @@ -317,6 +318,7 @@ public class WebsocketConnection extends WebSocketClient implements XConnection, try { _inputStreamWriter.write(messageBytes); + _inputStreamWriter.flush(); } catch (IOException e) { notifyListeners_error(new com.sun.star.uno.Exception(e)); return; |