class HTTP::Timeout::Global

def wait_writable_or_timeout

Wait for a socket to become writable
def wait_writable_or_timeout
  IO.select(nil, [@socket], nil, time_left)
  log_time
end