libreoffice-online/net
Luboš Luňák 897c5df270 make Socket use Buffer for input buffer too
SteamSocket::eraseFirstInputBytes() removes from the beginning
of std::vector, which is generally slow. If the buffer becomes
too big, which it may under a load, then the function will get
slow, which in turn will likely lead to the buffer getting even
bigger because of accumulated backlog.

The Buffer class is optimized for removal at the beginning,
so use it instead of std::vector, including some API additions
for it to be an in-place replacement where it's used.

Signed-off-by: Luboš Luňák <l.lunak@collabora.com>
Change-Id: I4cf7ec56c908c7d3df391dc3f8e230ad32abb162
2021-10-26 12:11:58 +02:00
..
Buffer.hpp make Socket use Buffer for input buffer too 2021-10-26 12:11:58 +02:00
clientnb.cpp wsd: cleanup Poco headers 2021-03-22 10:09:22 -04:00
DelaySocket.cpp
DelaySocket.hpp
FakeSocket.cpp
FakeSocket.hpp
HttpHelper.cpp wsd: Close socket hard when necessary 2021-07-19 17:31:55 +01:00
HttpHelper.hpp
HttpRequest.cpp wsd: http: reason phrase is optional 2021-09-26 17:02:01 -04:00
HttpRequest.hpp make Socket use Buffer for input buffer too 2021-10-26 12:11:58 +02:00
NetUtil.cpp wsd: killpoco: cert verification 2021-07-18 21:14:48 -04:00
NetUtil.hpp wsd: move isLocalhost to a common area 2021-07-18 21:14:48 -04:00
ServerSocket.hpp Remove non-abstract unix socket files on shutdown. 2021-07-31 07:43:45 +03:00
Socket.cpp Handle poll results in SocketPoll in a round-robin order 2021-08-21 15:30:18 +01:00
Socket.hpp make Socket use Buffer for input buffer too 2021-10-26 12:11:58 +02:00
Ssl.cpp wsd: ssl certificate verification requirements 2021-07-18 21:14:48 -04:00
Ssl.hpp wsd: ssl certificate verification requirements 2021-07-18 21:14:48 -04:00
SslSocket.hpp Don't try to set empty hostname for SNI 2021-09-15 09:34:56 +02:00
WebSocketHandler.hpp make Socket use Buffer for input buffer too 2021-10-26 12:11:58 +02:00
WebSocketSession.hpp No need for the template class MessageQueueBase 2021-07-21 09:54:28 +03:00