lib/httpx/resolver/native.rb in httpx-1.3.0 vs lib/httpx/resolver/native.rb in httpx-1.3.1
- old
+ new
@@ -327,10 +327,10 @@
else
reset_hostname(name, connection: connection)
@timeouts.delete(connection.origin.host)
@connections.delete(connection)
Resolver.cached_lookup_set(connection.origin.host, @family, addresses) if @resolver_options[:cache]
- emit_addresses(connection, @family, addresses.map { |addr| addr["data"] })
+ catch(:coalesced) { emit_addresses(connection, @family, addresses.map { |addr| addr["data"] }) }
end
end
return emit(:close) if @connections.empty?
resolve