lib/httpx/resolver/https.rb in httpx-1.2.0 vs lib/httpx/resolver/https.rb in httpx-1.2.1
- old
+ new
@@ -136,12 +136,17 @@
parse_addresses(result, request)
when :no_domain_found
# Indicates no such domain was found.
host = @requests.delete(request)
- connection = reset_hostname(host)
+ connection = reset_hostname(host, reset_candidates: false)
- emit_resolve_error(connection)
+ unless @queries.value?(connection)
+ emit_resolve_error(connection)
+ return
+ end
+
+ resolve
when :dns_error
host = @requests.delete(request)
connection = reset_hostname(host)
emit_resolve_error(connection)