ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java |    2 
++
 1 file changed, 2 insertions(+)

New commits:
commit 8f7d3d0e39025b6019922b62fc60961e09c5296d
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: Sun Sep 3 20:29:03 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/+/156488
    Tested-by: Jenkins
    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 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;

Reply via email to