c851c3e93b
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> |
||
---|---|---|
.. | ||
Common.hpp | ||
FileUtil.cpp | ||
FileUtil.hpp | ||
IoUtil.cpp | ||
IoUtil.hpp | ||
Log.cpp | ||
Log.hpp | ||
LOOLWebSocket.hpp | ||
Message.hpp | ||
MessageQueue.cpp | ||
MessageQueue.hpp | ||
Png.hpp | ||
Protocol.cpp | ||
Protocol.hpp | ||
Rectangle.hpp | ||
security.h | ||
Session.cpp | ||
Session.hpp | ||
SigUtil.cpp | ||
SigUtil.hpp | ||
SpookyV2.cpp | ||
SpookyV2.h | ||
Unit.cpp | ||
Unit.hpp | ||
UnitHTTP.cpp | ||
UnitHTTP.hpp | ||
Util.cpp | ||
Util.hpp |