[zeromq-dev] Asymmetrical PUB-SUB problem

Joshua Foster jhawk28 at gmail.com
Sat Jul 7 16:14:32 CEST 2012


Try binding to * on box b when publishing.

Joshua

> Mark Sutheran <mailto:mark_sutheran at yahoo.com>
> July 7, 2012 9:42 AM
> I'm having a strange asymmetrical problem with tcp PUB/SUB between two 
> boxes - it appears to fail one way.
>
> Details:
> * zeromq version: 3.2, using the Java wrapper.
> * Scenario has two machines A (Ubuntu, x64) and B (Angstrom, arm8)
> * Both connected directly via wireless interface (B is acting as AP).
>
> Scenario 1: A->B. All as expected.
> * Box A:PUB bind wlan0 - publish messages 1x per second.
> * Box A:SUB connect <ipx> - see messages, yay!
> * Box B:SUB connect <ipx> - see messages, yay!
>
> Scenario 2: B->A. Problem
> * Box B:PUB bind wlan0 - publish messages 1x per second.
> * Box B:SUB connect <ipy> - see messages, yay!
> * Box A:SUB connect <ipx> - no messages, boo!
>
> However, if I change pattern...
>
> Scenario 3: Comparison
> * Box A: REQ - make n requests.
> * Box B: REP - send n replies. Replies received on Machine A as 
> expected. Yay.
>
> There are absolutely no messages received at the SUB on A from the PUB 
> on B (irrespective of the process start order) however, connecting a 
> SUB on B to the interface's ip works fine. If I reverse the boxes I 
> see the behaviour I expect - i.e. the SUBs on both boxes see the 
> messages. As a contrast: if I run a REQ on A and REP on B, everything 
> works as expected and the message sent from B is received at A.
>
> This is presumably a problem with my hardware/OS but I'm not sure even 
> where to start looking... any pointers would be greatly appreciated.
>
> Cheers,
> Mark
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120707/9890e689/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120707/9890e689/attachment.jpg>


More information about the zeromq-dev mailing list