]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: Don't expect data from server as long as request is unfinished
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Feb 2023 12:58:13 +0000 (13:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Feb 2023 16:45:45 +0000 (17:45 +0100)
commitf4b89f162a6c2917050b0ca3ae5e40621874a626
treee22cd88a3d52c6a5a81ed56ee9b5fd8c821666e7
parent59b240c30ca03fb46e0a0c63af0cff54274702b3
MEDIUM: mux-h1: Don't expect data from server as long as request is unfinished

On client side, as long as the request is unfinished, the H1 stream states
it does not expect data from the server. It does not mean the server must
not send its response but only it may wait to receive the whole request with
no risk to trigger a read timeout.

When the request is finished, the H1 stream reports it expects to receive
data from the opposite endpoint.

The purpose of this patch is to never report a server timeout on receive if
the client is still uploading data. This way, it is possible to have a
smaller server timeout than the client one.
src/mux_h1.c