diff options
author | Viktor Söderqvist <[email protected]> | 2022-05-12 23:37:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2022-12-06 16:47:40 +0100 |
commit | c1f9122ab2a646df9182e51e3181de6ffa71af0c (patch) | |
tree | f51cf3f1374745eddbdaf712f400156371772825 /src/gun.erl | |
parent | f9b886e52493740f297a7091387f2e492d8f50f3 (diff) | |
download | gun-c1f9122ab2a646df9182e51e3181de6ffa71af0c.tar.gz gun-c1f9122ab2a646df9182e51e3181de6ffa71af0c.tar.bz2 gun-c1f9122ab2a646df9182e51e3181de6ffa71af0c.zip |
Add keepalive_tolerance http2 option
The number of unacknowledged pings that can be tolerated
before the connection is forcefully closed.
When a keepalive ping is sent to the peer, a counter is
incremented and if this counter exceeds the tolerance limit,
the connection is forcefully closed. The counter is
decremented whenever a ping ack is received from the peer.
By default, the mechanism for closing the connection based
on ping and ping ack is disabled.
Loïc Hoguin: I have edited a lot of the code and renamed
a few things as well as simplified the docs and increased
test timeouts to avoid race conditions.
Diffstat (limited to 'src/gun.erl')
-rw-r--r-- | src/gun.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gun.erl b/src/gun.erl index b27ea6e..976a137 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -223,6 +223,7 @@ cookie_ignore_informational => boolean(), flow => pos_integer(), keepalive => timeout(), + keepalive_tolerance => non_neg_integer(), notify_settings_changed => boolean(), %% Options copied from cow_http2_machine. |