mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
session: if found connection is closed and addresses expired, send it to resolve codepath
This commit is contained in:
parent
b1448019a6
commit
b27119cbc4
@ -198,7 +198,12 @@ module HTTPX
|
||||
end
|
||||
when :closing, :closed
|
||||
connection.idling
|
||||
select_connection(connection, selector)
|
||||
if connection.addresses?
|
||||
select_connection(connection, selector)
|
||||
else
|
||||
# if addresses expired, resolve again
|
||||
resolve_connection(connection, selector)
|
||||
end
|
||||
else
|
||||
pin_connection(connection, selector)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user