session: if found connection is closed and addresses expired, send it to resolve codepath

This commit is contained in:
HoneyryderChuck 2025-09-04 11:41:07 +01:00
parent b1448019a6
commit b27119cbc4

View File

@ -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