def finish_request(self, request, client_address): try: SimpleXMLRPCServer.finish_request(self, request, client_address) except (socket.error, AttributeError): # AttributeError may get thrown if the underlying socket has # already been closed elsewhere and _sock = None. pass finally: if mailpile.util.QUITTING: self.shutdown()
def finish_request(self, request, client_address): request.do_handshake() return SimpleXMLRPCServer.finish_request(self, request, client_address)
def finish_request(self, request, client_address): try: SimpleXMLRPCServer.finish_request(self, request, client_address) except (socket.error, socks.SSL.ZeroReturnError, socks.SSL.Error): pass