core: race during Receiver construction.
It's possible for a message to arrive after .add_handler() but before Latch construction. This is papering over a bigger problem with service pool instantiation. https://travis-ci.org/dw/mitogen/jobs/390409832#L2901 TASK [Spin up a few interpreters] ********************************************** changed: [target] => (item=1) ERROR! [pid 5355] 14:47:50.224945 E mitogen.ctx.ssh.localhost:2201.sudo.mitogen__user2: mitogen: Router(Broker(0x7f1e93911450))._invoke(Message(19100, 19095, 19095, 110, 1005, '\x80\x02U\x1fmitogen.service.PushFileServiceq\x01U\x11store_and_f'..8955)): <bound method Receiver._on_receive of Receiver(Router(Broker(0x7f1e93911450)), 110)> crashed Traceback (most recent call last): File "<stdin>", line 1471, in _invoke File "<stdin>", line 491, in _on_receive AttributeError: 'Receiver' object has no attribute '_latch'pull/283/head
parent
27ab051289
commit
75b195ba4b
Loading…
Reference in New Issue