]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h2: apply a timeout to h2 connections
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 09:02:25 +0000 (10:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:16:19 +0000 (18:16 +0100)
commitea39282e851c70ec9d192771deb7d949533fe6a2
tree0188f7010631d6b2404fe05d7217c1118d162226
parenta1349f020787ee7355c0d088f8054713fa25e069
MEDIUM: h2: apply a timeout to h2 connections

Till now there was no way to deal with a dead H2 connection. Now each
connection creates a task that wakes up to kill the connection. Its
timeout is constantly refreshed when there's some activity. In case
the timeout triggers, the best effort attempts are made at sending a
clean GOAWAY message before closing and signaling the streams.

The timeout is automatically disabled when there's an active stream on
the connection, and restarted when the last stream finishes. This way
it should not affect long sessions.
src/mux_h2.c