Added ConnectionResetError exception handling while sending response
这个提交包含在:
父节点
72275a3270
当前提交
ffe6b2bf3b
@ -248,7 +248,7 @@ class tcp_base(object):
|
||||
self.__connection__.sendall(data)
|
||||
except BlockingIOError:
|
||||
time.sleep(.1) # try again till timeout exceeds
|
||||
except BrokenPipeError:
|
||||
except (BrokenPipeError, ConnectionResetError) as e:
|
||||
self.logger.exception('%s Exception while sending data', self.__log_prefix__())
|
||||
self.__connection_lost__()
|
||||
return False
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户