From 0fe54af72b81fdb198a377198d7f3a91f9ad6d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 14 Aug 2017 14:57:59 +0200 Subject: Allow an infinity keepalive value This disables the keepalive mechanism entirely. --- doc/src/manual/gun.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/src/manual/gun.asciidoc b/doc/src/manual/gun.asciidoc index b690558..02d0b86 100644 --- a/doc/src/manual/gun.asciidoc +++ b/doc/src/manual/gun.asciidoc @@ -57,12 +57,12 @@ Configuration for the HTTP protocol. The following keys are defined: -keepalive => pos_integer():: +keepalive => timeout():: Time between pings in milliseconds. Since the HTTP protocol has no standardized way to ping the server, Gun will simply send an empty line when the connection is idle. Gun only makes a best effort here as servers usually have configurable limits to drop - idle connections. Defaults to 5000. + idle connections. Use `infinity` to disable. Defaults to 5000. transform_header_name => fun((LowercaseName :: binary()) -> TransformedName :: binary()) | undefined:: A function that will be applied to all header names before they are sent to the server. Gun assumes that all header names are in -- cgit v1.2.3