]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1924] Mark a place to add the error handling
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 28 Jan 2013 14:08:30 +0000 (15:08 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 28 Jan 2013 14:08:30 +0000 (15:08 +0100)
src/bin/msgq/msgq.py.in

index 68c18dc7926af5c3bba0c7e13d4e1c1cbbf75c87..ab401832ac494d77532c3102baae8ca121110608 100755 (executable)
@@ -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)