Skip to content

Commit

Permalink
Fix use of try_with_timeout (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj authored Aug 24, 2022
1 parent 1b0ad94 commit 5681b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clientlayers/ConnectionRequest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function connectionlayer(handler)
target_url = URI(target_url, port=80) # if there is no port info, connect_tunnel will fail
end
r = if readtimeout > 0
try_with_timeout(() -> shouldtimeout(io, readtimeout, () -> close(io)), readtimeout) do
try_with_timeout(() -> shouldtimeout(io, readtimeout), readtimeout, () -> close(io)) do
connect_tunnel(io, target_url, req)
end
else
Expand Down

0 comments on commit 5681b9f

Please sign in to comment.