|
95 | 95 | Used for "hashing" a Connection object on just the key properties necessary for determining |
96 | 96 | connection re-useability. That is, when a new request calls `newconnection`, we take the |
97 | 97 | 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. |
99 | 99 | same parameters, we can re-use it (as long as it's not already being used, obviously). |
100 | 100 | """ |
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) |
102 | 102 |
|
103 | | -const ConnectionKeyType = Tuple{AbstractString, AbstractString, Bool, Bool, Bool, Int} |
| 103 | +const ConnectionKeyType = Tuple{AbstractString, AbstractString, Bool, Bool, Bool} |
104 | 104 |
|
105 | 105 | Connection(host::AbstractString, port::AbstractString, |
106 | 106 | idle_timeout::Int, |
@@ -445,7 +445,7 @@ function newconnection(::Type{T}, |
445 | 445 | connection_limit_warning(connection_limit) |
446 | 446 | return acquire( |
447 | 447 | getpool(pool, T), |
448 | | - (host, port, require_ssl_verification, keepalive, true, Threads.threadid()); |
| 448 | + (host, port, require_ssl_verification, keepalive, true); |
449 | 449 | forcenew=forcenew, |
450 | 450 | isvalid=c->connection_isvalid(c, Int(idle_timeout))) do |
451 | 451 | Connection(host, port, |
|
0 commit comments