aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gun_http2.erl2
-rw-r--r--src/gun_ws.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 7677076..e2aeb4a 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -164,7 +164,7 @@ do_check_options([Opt={Name, _}|Opts]) ->
name() -> http2.
opts_name() -> http2_opts.
has_keepalive() -> true.
-default_keepalive() -> 5000.
+default_keepalive() -> infinity.
init(_ReplyTo, Socket, Transport, Opts0) ->
%% We have different defaults than the protocol in order
diff --git a/src/gun_ws.erl b/src/gun_ws.erl
index 8be93e8..f59c19c 100644
--- a/src/gun_ws.erl
+++ b/src/gun_ws.erl
@@ -91,7 +91,7 @@ do_check_options([Opt|_]) ->
name() -> ws.
opts_name() -> ws_opts.
has_keepalive() -> true.
-default_keepalive() -> 5000.
+default_keepalive() -> infinity.
init(ReplyTo, Socket, Transport, #{stream_ref := StreamRef, headers := Headers,
extensions := Extensions, flow := InitialFlow, handler := Handler, opts := Opts}) ->