'strip connect'

def handle(self, handler, do_ssl_handshake=True):

    logging.info('%s    "STRIP    %s    %s:%d    %s"    -    -', handler.address_string(), handler.command, handler.host, handler.port, handler.protocol_version)
    handler.send_response(200)
    handler.end_headers()
    if do_ssl_handshake:
        try:
            self.do_ssl_handshake(handler)
        except (socket.error, ssl.SSLError, OpenSSL.SSL.Error) as e:
            if ((e.args[0] not in (errno.ECONNABORTED, errno.ECONNRESET)) or ((len(e.args) > 1) and (e.args[1] == 'Unexpected    EOF'))):
                logging.exception('ssl.wrap_socket(connection=%r)    failed:    %s', handler.connection, e)
            return
    try:
        handler.raw_requestline = handler.rfile.readline(65537)
        if (len(handler.raw_requestline) > 65536):
            handler.requestline = ''
            handler.request_version = ''
            handler.command = ''
            handler.send_error(414)
            handler.wfile.close()
            return
        if (not handler.raw_requestline):
            handler.close_connection = 1
            return
        if (not handler.parse_request()):
            handler.send_error(400)
            handler.wfile.close()
            return
    except (socket.error, ssl.SSLError, OpenSSL.SSL.Error) as e:
        if (e.args[0] in (errno.ECONNABORTED, errno.ECONNRESET, errno.EPIPE)):
            handler.close_connection = 1
            return
        else:
            raise
    try:
        handler.do_METHOD()
    except (socket.error, ssl.SSLError, OpenSSL.SSL.Error) as e:
        if (e.args[0] not in (errno.ECONNABORTED, errno.ETIMEDOUT, errno.EPIPE)):
            raise
