Skip to content

Commit

Permalink
Retain connections for a bit longer
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Berman committed Apr 25, 2023
1 parent 5322190 commit e3a4125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/arweave/src/ar_http.erl
Expand Up @@ -234,7 +234,7 @@ open_connection(#{ peer := Peer } = Args) ->
{IPOrHost, Port} = get_ip_port(Peer),
ConnectTimeout = maps:get(connect_timeout, Args,
maps:get(timeout, Args, ?HTTP_REQUEST_CONNECT_TIMEOUT)),
gun:open(IPOrHost, Port, #{ http_opts => #{ keepalive => 5000 },
gun:open(IPOrHost, Port, #{ http_opts => #{ keepalive => 60000 },
retry => 0, connect_timeout => ConnectTimeout }).

get_ip_port({_, _} = Peer) ->
Expand Down

0 comments on commit e3a4125

Please sign in to comment.