wsd/LOOLWSD.cpp |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 38bb1db96c34ea7937c5061ef3caa192cd8b919f
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Sat Mar 30 11:38:17 2019 +0000
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Sat Mar 30 17:50:43 2019 +0100

    Only erase buffer if socket is not shutting down.
    
    Change-Id: I23886db8d2fdb6297862947e031e14d7a485ecd7
    Reviewed-on: https://gerrit.libreoffice.org/69949
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Michael Meeks <michael.me...@collabora.com>

diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index 2093211f7..095795cc1 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -2131,6 +2131,7 @@ private:
                         << "\r\n";
                     socket->send(oss.str());
                     socket->shutdown();
+                    return;
                 }
             }
         }
@@ -2149,6 +2150,7 @@ private:
             // NOTE: Check _wsState to choose between HTTP response or 
WebSocket (app-level) error.
             LOG_INF("#" << socket->getFD() << " Exception while processing 
incoming request: [" <<
                     LOOLProtocol::getAbbreviatedMessage(socket->getInBuffer()) 
<< "]: " << exc.what());
+            return;
         }
 
         // if we succeeded - remove the request from our input buffer
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to