You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@warn"connection_limit no longer supported as a keyword argument; use `HTTP.set_default_connection_limit!($cl)` or pass a connection pool like `pool=HTTP.Pool($cl)` instead."
427
+
@warn"connection_limit no longer supported as a keyword argument; use `HTTP.set_default_connection_limit!($cl)` before any requests are made or construct a shared pool via `POOL = HTTP.Pool($cl)` and pass to each request like `pool=POOL` instead."
428
428
429
429
"""
430
430
newconnection(type, host, port) -> Connection
@@ -509,7 +509,7 @@ function getconnection(::Type{TCPSocket},
509
509
tcp = Sockets.TCPSocket()
510
510
Sockets.connect!(tcp, addr, p)
511
511
try
512
-
try_with_timeout(connect_timeout) do
512
+
try_with_timeout(connect_timeout) do _
513
513
Sockets.wait_connected(tcp)
514
514
keepalive &&keepalive!(tcp)
515
515
end
@@ -523,7 +523,7 @@ function getconnection(::Type{TCPSocket},
523
523
end
524
524
return tcp
525
525
catch e
526
-
lasterr = e isaTimeoutError?ConnectTimeout(host, port) : e
526
+
lasterr = e isaConcurrentUtilities.TimeoutException?ConnectTimeout(host, port) : e
527
527
end
528
528
end
529
529
# If no connetion could be set up, to any address, throw last error
@@ -624,7 +624,7 @@ function sslupgrade(::Type{IOType}, c::Connection{T},
624
624
# if the upgrade fails, an error will be thrown and the original c will be closed
0 commit comments