lib/httpx/io/tcp.rb in httpx-0.23.4 vs lib/httpx/io/tcp.rb in httpx-0.24.0

- old
+ new

@@ -36,10 +36,13 @@ @state = :connected else add_addresses(addresses) end @ip_index = @addresses.size - 1 - # @io ||= build_socket + end + + def socket + @io.to_io end def add_addresses(addrs) return if addrs.empty?