def handle_one_request(self):
    try:
      self.raw_requestline = self.rfile.readline(65537)
      self.do_parse_and_handle_one_request()
    except socket.timeout, e:
      # A read or a write timed out.  Discard this connection
      self.log_error('Request timed out: %r', e)
      self.close_connection = 1
      return
    except ssl.SSLError:
      # There is insufficient information passed up the stack from OpenSSL to
      # determine the true cause of the SSL error. This almost always happens
      # because the client refuses to accept the self-signed certs of
      # WebPageReplay.
      self.close_connection = 1
      return
    except socket.error, e:
      # Connection reset errors happen all the time due to the browser closing
      # without terminating the connection properly.  They can be safely
      # ignored.
      if e[0] == errno.ECONNRESET:
        self.close_connection = 1
        return
      raise
Handle a single HTTP request.
dataset/ETHPy150Open chromium/web-page-replay/httpproxy.py/HttpArchiveHandler.handle_one_request