class Async::HTTP::Client
def connect(connection_limit: nil)
def connect(connection_limit: nil) Pool.new(connection_limit) do Async.logger.debug(self) {"Making connection to #{@endpoint.inspect}"} peer = @endpoint.connect peer.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) @protocol.client(IO::Stream.new(peer)) end end