diff options
author | Loïc Hoguin <[email protected]> | 2020-10-07 11:44:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-10-07 11:47:02 +0200 |
commit | 556645d8d73b1de8ba453ee2fba2bc659a7962f6 (patch) | |
tree | 20e580ff53a4e294e96fbf4a3f38b48d2c71a809 /doc/src | |
parent | 7d3dffd15c7d773cf48ba493ce733125ebbc9a31 (diff) | |
download | gun-556645d8d73b1de8ba453ee2fba2bc659a7962f6.tar.gz gun-556645d8d73b1de8ba453ee2fba2bc659a7962f6.tar.bz2 gun-556645d8d73b1de8ba453ee2fba2bc659a7962f6.zip |
Default keepalive to infinity for all protocols
For HTTP/2 some servers are not fond of receiving pings,
especially if there's no stream at the time. (particularly
gRPC servers). This is an odd decision for sure. Rather
than trying to accomodate for their logic the ping is no
longer sent by default.
For Websocket sending a ping is a new feature in Gun 2.0
so I'm just being conservative there.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/manual/gun.asciidoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/manual/gun.asciidoc b/doc/src/manual/gun.asciidoc index a2d51f6..8cf46cc 100644 --- a/doc/src/manual/gun.asciidoc +++ b/doc/src/manual/gun.asciidoc @@ -241,7 +241,7 @@ flow - see below:: The initial flow control value for all HTTP/2 streams. By default flow control is disabled. -keepalive (5000):: +keepalive (infinity):: Time between pings in milliseconds. @@ -514,7 +514,7 @@ flow - see below:: The initial flow control value for the Websocket connection. By default flow control is disabled. -keepalive (5000):: +keepalive (infinity):: Time between pings in milliseconds. @@ -559,7 +559,7 @@ when receiving a ping. lowercased as well. * *2.0*: Function `gun:headers/4,5` introduced. * *2.0*: The `keepalive` option is now set to `infinity` by - default for the HTTP/1.1 protocol, disabling it. + default for all protocols. This means it is disabled. * *2.0*: Websocket options `keepalive` and `silence_pings` introduced. * *1.3*: Add the CONNECT destination's `protocols` option and deprecate the previously introduced `protocol` option. |