Skip to content

Commit 7f0d9b5

Browse files
committed
Remove threadid from connectionkey
1 parent e0ee298 commit 7f0d9b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Connections.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ end
9595
Used for "hashing" a Connection object on just the key properties necessary for determining
9696
connection re-useability. That is, when a new request calls `newconnection`, we take the
9797
request parameters of host and port, and if ssl verification is required, if keepalive is enabled,
98-
if an existing Connection was already created with the exact, and the current thread id.
98+
and if an existing Connection was already created with the exact.
9999
same parameters, we can re-use it (as long as it's not already being used, obviously).
100100
"""
101-
connectionkey(x::Connection) = (x.host, x.port, x.require_ssl_verification, x.keepalive, x.clientconnection, Threads.threadid())
101+
connectionkey(x::Connection) = (x.host, x.port, x.require_ssl_verification, x.keepalive, x.clientconnection)
102102

103-
const ConnectionKeyType = Tuple{AbstractString, AbstractString, Bool, Bool, Bool, Int}
103+
const ConnectionKeyType = Tuple{AbstractString, AbstractString, Bool, Bool, Bool}
104104

105105
Connection(host::AbstractString, port::AbstractString,
106106
idle_timeout::Int,
@@ -445,7 +445,7 @@ function newconnection(::Type{T},
445445
connection_limit_warning(connection_limit)
446446
return acquire(
447447
getpool(pool, T),
448-
(host, port, require_ssl_verification, keepalive, true, Threads.threadid());
448+
(host, port, require_ssl_verification, keepalive, true);
449449
forcenew=forcenew,
450450
isvalid=c->connection_isvalid(c, Int(idle_timeout))) do
451451
Connection(host, port,

0 commit comments

Comments
 (0)