]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-quic: adjust timeout refresh
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 25 Jul 2022 12:58:48 +0000 (14:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Aug 2022 12:58:36 +0000 (14:58 +0200)
commit5fc05d17ad29ae41dc5c4e640c7b9ac082dbac8b
tree210d3117ab1e21a5ad131394826601e0f816c523
parentb6309456d067e3a6d39cd21b0d1af23dfd66d7da
MEDIUM: mux-quic: adjust timeout refresh

Implement a new internal function qcc_refresh_timeout(). Its role will be
to reset QUIC MUX timeout depending if there is requests in progress or
not.

qcc_update_timeout() does not set a timeout if there is still attached
streams as in this case the upper layer is responsible to manage it.
Else it will activate the timeout depending on the connection current
status.

Timeout is refreshed on several locations : on stream detach and in I/O
handler and wake callback.

For the moment, only the default timeout is used (client or server). The
function may be expanded in the future to support more specific ones :
* http-keep-alive if connection is idle
* http-request when waiting for incomplete HTTP requests
* client/server-fin for graceful shutdown
src/mux_quic.c