lib/httpx/resolver/native.rb in httpx-1.1.5 vs lib/httpx/resolver/native.rb in httpx-1.2.0
- old
+ new
@@ -86,9 +86,10 @@
def <<(connection)
if @nameserver.nil?
ex = ResolveError.new("No available nameserver")
ex.set_backtrace(caller)
+ connection.force_reset
throw(:resolve_error, ex)
else
@connections << connection
resolve
end