Route unknown context ID messages upstream

This propagates messages up the tree until they encounter a node that
knows how to forward them back downstream. As a consequence for invalid
context IDs, a 'no route' message will always be logged by the master.
pull/35/head
David Wilson 7 years ago
parent 93abc0aa92
commit 6bd8fda1d4

@ -823,6 +823,9 @@ class Router(object):
return self._invoke(msg)
stream = self._stream_by_id.get(msg.dst_id)
if stream is None:
stream = self._stream_by_id.get(econtext.parent_id)
if stream is None:
LOG.error('%r: no route for %r, my ID is %r',
self, msg, econtext.context_id)

Loading…
Cancel
Save