ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit def2d050aa635b4dceee84d6b25fe390d21a3b76 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Sep 3 17:00:20 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Sep 6 12:12:18 2023 +0200 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/+/156441 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Skyler Grey <skyler.g...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java index 440151fc696c..9d3f4768a34f 100644 --- a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java +++ b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java @@ -265,6 +265,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; @@ -304,6 +305,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;