MINOR: ssl: don't abort after sending 16kB
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2017 13:34:39 +0000 (15:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2017 13:52:41 +0000 (15:52 +0200)
commit8de70bcb54200ba217447941eeeb4f14ed2d803e
tree1693373e4ad4bd39481a0f3a82edd2ceb1bcfb83
parent3b9c850271589751540b7eb0d9ae8816c38875c0
MINOR: ssl: don't abort after sending 16kB

SSL records are 16kB max. When trying to send larger data chunks at once,
SSL_read() only processes 16kB and ssl_sock_from_buf() believes it means
the system buffers are full, which is not the case, contrary to raw_sock.
This is particularly noticeable with HTTP/2 when using a 64kB buffer with
multiple streams, as the mux buffer can start to fill up pretty quickly
in this situation, slowing down the data delivery.
src/ssl_sock.c