Frames lost in xsub / xpub
Description
Environment
Debian GNU/Linux
Activity
Show:

Örjan Persson January 31, 2012 at 9:13 AM
I just tried it again against the latest libzmq and it still asserts instantly. The assertions in xpubsub.c or pubsub.c should indicate that a frame was dropped.
Please note that you need to run two instances of xpubsub for this bug to trigger. If you only run 1x pubsub and 1x xpubsub, everything works as expected.

Martin Sustrik January 31, 2012 at 6:44 AM
I've run the supplies test with 100,000,000 messages. Still no assertions of any kind.

Martin Sustrik January 31, 2012 at 6:35 AM
How do you know the frames are dropped? The test programs seem just to print out some numbers.
If you have more than one xsub/xpub forwarding device, frames will most likely get lost.
To reproduce, there's two programs you need to compile;
1. pubsub – send and receives messages
2. xpubsub – just forwards messages / subscriptions
Everything works fine if you just run one instance of xpubsub. But if you run more, you'll get frames dropped.
https://gist.github.com/1511258