libreoffice-online/common
Ashod Nakashian c851c3e93b wsd: correctly remove request from socket buffer
POST requests require the full request to be
left in the socket buffer to be parsed in full.
But GET requests, especially WS upgrade, must
have the request cleared from the socket, as
there is more data expected to be read after
the upgrade, which happens by the DocBroker
thread, so clearing the buffer must be done
before the upgrade.

This patch accomodates these two conflicting
cases and refactors the code slightly to
make it more structured and readable.

Change-Id: Ia7357a745a3900f986099ba14af2a0946023018b
Reviewed-on: https://gerrit.libreoffice.org/36873
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-04-24 06:49:33 +02:00
..
Common.hpp wsd: correctly remove request from socket buffer 2017-04-24 06:49:33 +02:00
FileUtil.cpp Add hook for disk space check. 2017-03-31 17:18:41 +01:00
FileUtil.hpp
IoUtil.cpp wsd: remove nextmessage 2017-04-03 05:18:09 +00:00
IoUtil.hpp remove obsolete Poco headers, and Poco SSL pieces. 2017-03-16 18:03:23 +00:00
Log.cpp Cleanup prctl / gettid system-call thrash on logging. 2017-03-30 18:14:40 +01:00
Log.hpp Cleanup prctl / gettid system-call thrash on logging. 2017-03-30 18:14:40 +01:00
LOOLWebSocket.hpp Don't set the buffer size to zero. 2017-04-19 10:58:18 +02:00
Message.hpp wsd: log messages upon construction 2017-03-27 03:18:29 +00:00
MessageQueue.cpp Merge document size changes callbacks in the message queue. 2017-04-07 12:13:45 +02:00
MessageQueue.hpp
Png.hpp
Protocol.cpp config.h - get includes right: must always be the first include. 2017-03-10 10:47:43 +01:00
Protocol.hpp
Rectangle.hpp
security.h
Session.cpp Dump ClientSession and MessageQueue state too. 2017-04-05 17:59:29 +01:00
Session.hpp Dump ClientSession and MessageQueue state too. 2017-04-05 17:59:29 +01:00
SigUtil.cpp config.h - get includes right: must always be the first include. 2017-03-10 10:47:43 +01:00
SigUtil.hpp
SpookyV2.cpp config.h - get includes right: must always be the first include. 2017-03-10 10:47:43 +01:00
SpookyV2.h
Unit.cpp Fix unit test timeout interfering with normal run 2017-03-17 12:44:23 +05:30
Unit.hpp Add hook for disk space check. 2017-03-31 17:18:41 +01:00
UnitHTTP.cpp config.h - get includes right: must always be the first include. 2017-03-10 10:47:43 +01:00
UnitHTTP.hpp
Util.cpp wsd: better thread affinity logging 2017-04-03 05:11:57 +00:00
Util.hpp Suppress assert()'s in the production builds. 2017-04-05 12:03:33 +02:00