Skip to content

Commit

Permalink
Update to support gun2. Based on pending pull request inaka#246
Browse files Browse the repository at this point in the history
  • Loading branch information
jkashimba committed Jan 11, 2023
1 parent 633920e commit 42d9105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%% == Dependencies ==

{deps, [
{gun, "1.3.3"},
{gun, "2.0.0-rc.1"},
{jsx, "3.0.0"},
{base64url, "1.0.1"}
]}.
Expand Down
6 changes: 5 additions & 1 deletion src/apns_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ open_origin(internal, _, #{connection := Connection} = StateData) ->
{next_event, internal, { Host
, Port
, #{ protocols => [http2]
, transport_opts => TransportOpts
, tls_opts => TransportOpts
, http_opts => #{keepalive => 5000}
, http2_opts => #{keepalive => 5000}
, retry => 0
}}}}.

Expand All @@ -244,6 +246,8 @@ open_proxy(internal, _, StateData) ->
, ProxyPort
, #{ protocols => [http]
, transport => tcp
, http_opts => #{keepalive => infinity}
, http2_opts => #{keepalive => infinity}
, retry => 0
}}}}.

Expand Down

0 comments on commit 42d9105

Please sign in to comment.