class Bundler::Settings::TCPSocketProbe

def wait_for_writtable_socket(socket, address, timeout)

def wait_for_writtable_socket(socket, address, timeout)
  if IO.select(nil, [socket], nil, timeout)
    probe_writtable_socket(socket, address)
  else # TCP Handshake timed out, or there is something dropping packets
    false
  end
end