From: Michal 'vorner' Vaner Date: Mon, 28 Jan 2013 14:08:30 +0000 (+0100) Subject: [1924] Mark a place to add the error handling X-Git-Tag: bind10-1.1.0beta1-release~104^2~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=079a6684785bb75f1ae2c2c2ebfc1838831e783d;p=thirdparty%2Fkea.git [1924] Mark a place to add the error handling --- diff --git a/src/bin/msgq/msgq.py.in b/src/bin/msgq/msgq.py.in index 68c18dc792..ab401832ac 100755 --- a/src/bin/msgq/msgq.py.in +++ b/src/bin/msgq/msgq.py.in @@ -531,6 +531,7 @@ class MsgQ: instance = routing["instance"] to = routing["to"] if group == None or instance == None: + # FIXME: Should we log them instead? return # ignore invalid packets entirely if to == "*": @@ -539,12 +540,15 @@ class MsgQ: if to in self.lnames: sockets = [ self.lnames[to] ] else: - return # recipient doesn't exist + sockets = [] msg = self.preparemsg(routing, data) if sock in sockets: + # Don't bounce to self sockets.remove(sock) + + # TODO: The place to create an undeliverable error, if requested for socket in sockets: self.send_prepared_msg(socket, msg)