libreoffice-online/net
Michael Meeks c069f72c4d Socket - re-work disposition to ensure we transfer sockets.
A number of call-sites, eg. clipboard, or admin-ws were
writing to sockets assuming they could return all the data
in a single series of writes, without needing to poll. As
such they failed to addSocketToPoll on the new poll - eg.
the docBroker. Unfortunately this meant that on EAGAIN
writes, the socket would be closed and the last parts
of a message lost.

Browsers would give net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

The situation is/was intermittent, so painful to debug.
On under-loaded developer machines, socket buffers are larger,
so this was seldom seen.

The re-factor forces a transfer to another SocketPoll via
the disposition, except for a couple of corner cases.

Change-Id: I2f1b2f99f179c4fda84464c9241fe434fa527725
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2020-12-07 14:32:43 +00:00
..
Buffer.hpp Fix unit test to not rely on under-defined behavior. 2020-11-29 19:27:23 -05:00
clientnb.cpp fix license headers 2020-10-01 11:56:43 +02:00
DelaySocket.cpp fix license headers 2020-10-01 11:56:43 +02:00
DelaySocket.hpp fix license headers 2020-10-01 11:56:43 +02:00
FakeSocket.cpp fix license headers 2020-10-01 11:56:43 +02:00
FakeSocket.hpp Replace all __linux in CPP conditions with __linux__. 2020-11-17 09:21:45 +00:00
HttpHelper.cpp wsd: move HttpHelper namespace from Socket to its home 2020-11-02 07:56:03 -05:00
HttpHelper.hpp wsd: move HttpHelper namespace from Socket to its home 2020-11-02 07:56:03 -05:00
ServerSocket.hpp fix license headers 2020-10-01 11:56:43 +02:00
Socket.cpp Socket - re-work disposition to ensure we transfer sockets. 2020-12-07 14:32:43 +00:00
Socket.hpp Socket - re-work disposition to ensure we transfer sockets. 2020-12-07 14:32:43 +00:00
Ssl.cpp Implement SslContext::id() for FreeBSD systems by calling pthread_getthreadid_np(). 2020-11-16 14:02:23 +00:00
Ssl.hpp fix license headers 2020-10-01 11:56:43 +02:00
SslSocket.hpp fix license headers 2020-10-01 11:56:43 +02:00
WebSocketHandler.hpp wsd: test: add Buffer test and minor cosmetics 2020-11-29 19:27:23 -05:00