Skip to content

Commit

Permalink
Use recv_timeout infinity to upload on slow connections
Browse files Browse the repository at this point in the history
  • Loading branch information
ziopio committed Oct 12, 2024
1 parent 5a879fa commit ffbe3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rebar3_grisp_io_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ update_package(RState, Token, PackageName, PackagePath, Force) ->
{<<"content-type">>, <<"application/octet-stream">>},
{<<"content-length">>, integer_to_binary(BinSize)}]
++ if_none_match(Force, Etag),
Options = insecure_option(RState),
Options = [{recv_timeout, infinity}| insecure_option(RState)],
case hackney:request(put, Url, Headers, {file, PackagePath}, Options) of
{ok, 201, _, _} ->
ok;
Expand Down

0 comments on commit ffbe3cd

Please sign in to comment.