aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-08-14 14:57:59 +0200
committerLoïc Hoguin <[email protected]>2017-08-14 14:57:59 +0200
commit0fe54af72b81fdb198a377198d7f3a91f9ad6d7c (patch)
treed7b7d5e014f0b2311fd3301e609bca20c15d278f /src/gun_http2.erl
parent6dc280be003c5bb648f4ea26f7a7670c62295c3f (diff)
downloadgun-df0efa1686162ecda4b2e790c465c5e887a2392b.tar.gz
gun-df0efa1686162ecda4b2e790c465c5e887a2392b.tar.bz2
gun-df0efa1686162ecda4b2e790c465c5e887a2392b.zip
Allow an infinity keepalive value1.0.0-pre.4
This disables the keepalive mechanism entirely.
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 4e108ae..38017b3 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -74,6 +74,8 @@ check_options(Opts) ->
do_check_options([]) ->
ok;
+do_check_options([{keepalive, infinity}|Opts]) ->
+ do_check_options(Opts);
do_check_options([{keepalive, K}|Opts]) when is_integer(K), K > 0 ->
do_check_options(Opts);
do_check_options([Opt={content_handlers, Handlers}|Opts]) ->