class Bundler::Settings::TCPSocketProbe

def probe_writtable_socket(socket, address)

def probe_writtable_socket(socket, address)
  socket.connect_nonblock(address)
rescue Errno::EISCONN
  true
rescue StandardError # Connection failed
  false
end