Commit ba007f0b authored by Likun Zhang's avatar Likun Zhang
Browse files

Add catch for the exact exception socket.error when msgq has been killed.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac335@3151 e5f2f494-b856-4b98-b285-d166d9295462
parent 02b73d32
......@@ -514,15 +514,17 @@ class Xfrin:
try:
self._send_cc_session.group_sendmsg(msg, XFROUT_MODULE_NAME)
self._send_cc_session.group_sendmsg(msg, ZONE_MANAGER_MODULE_NAME)
except:
pass
except socket.error as err:
log_error("Fail to send message to %s and %s, msgq may has been killed"
% (XFROUT_MODULE_NAME, ZONE_MANAGER_MODULE_NAME))
else:
msg = create_command(ZONE_XFRIN_FAILED, param)
# catch the exception, in case msgq has been killed.
try:
self._send_cc_session.group_sendmsg(msg, ZONE_MANAGER_MODULE_NAME)
except:
pass
except socket.error as err:
log_error("Fail to send message to %s, msgq may has been killed"
% ZONE_MANAGER_MODULE_NAME)
def startup(self):
while not self._shutdown_event.is_set():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment