[Libreoffice-commits] online.git: Branch 'libreoffice-6-2' - wsd/LOOLWSD.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Mar 30 17:31:24 UTC 2019
wsd/LOOLWSD.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 97a6b8e130ab5a461a964be6bcca4bef627f2b7f
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Sat Mar 30 11:38:17 2019 +0000
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Sat Mar 30 18:31:18 2019 +0100
Only erase buffer if socket is not shutting down.
Change-Id: I23886db8d2fdb6297862947e031e14d7a485ecd7
Reviewed-on: https://gerrit.libreoffice.org/69954
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index 34d3ff16a..a4a5533fe 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -2118,6 +2118,7 @@ private:
<< "\r\n";
socket->send(oss.str());
socket->shutdown();
+ return;
}
}
}
@@ -2136,6 +2137,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
More information about the Libreoffice-commits
mailing list