本文整理汇总了Python中SocketServer.BaseServer.finish_request方法的典型用法代码示例。如果您正苦于以下问题:Python BaseServer.finish_request方法的具体用法?Python BaseServer.finish_request怎么用?Python BaseServer.finish_request使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocketServer.BaseServer
的用法示例。
在下文中一共展示了BaseServer.finish_request方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: finish_request
# 需要导入模块: from SocketServer import BaseServer [as 别名]
# 或者: from SocketServer.BaseServer import finish_request [as 别名]
def finish_request(self, request, client_address):
"""Finish one request by instantiating RequestHandlerClass."""
try:
BaseServer.finish_request(self, request, client_address)
except (IOError) as err:
if hasattr(err, 'errno') and err.errno == 32:
logger.warning("Broken pipe exception, ignoring")
else:
logger.exception("Error in request handler")
示例2: finish_request
# 需要导入模块: from SocketServer import BaseServer [as 别名]
# 或者: from SocketServer.BaseServer import finish_request [as 别名]
def finish_request(self, request, client_address):
BaseServer.finish_request(self, request, client_address)
示例3: finish_request
# 需要导入模块: from SocketServer import BaseServer [as 别名]
# 或者: from SocketServer.BaseServer import finish_request [as 别名]
def finish_request(self, request, client_address):
signal.signal(signal.SIGHUP, signal.SIG_IGN)
BaseServer.finish_request(self, request, client_address)