Skip to content

Commit

Permalink
Update src/ConnectionPool.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jan 11, 2023
1 parent 707fcea commit 3095bb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ConnectionPool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ end
function getconnection(::Type{TCPSocket},
host::AbstractString,
port::AbstractString;
# set keepalive to true by default since it's cheap and helps keep long-running requests/responses
# alive in the face of heavy workloads where Julia's task scheduler might take a while to
# keep up with midflight requests
keepalive::Bool=true,
connect_timeout::Int=0,
readtimeout::Int=0,
Expand Down

0 comments on commit 3095bb3

Please sign in to comment.