[zeromq-dev] Asymmetrical PUB-SUB problem

Mark Sutheran mark_sutheran at yahoo.com
Sat Jul 7 18:22:25 CEST 2012


Ok, apols - looks like it's my bad!

Rebuilt all the libs on the client box (A) to the latest and greatest and the problem went away. So I guess this was a backwards-only compatibility issue between different versions (fits the pattern)

Cheers,
Mark


________________________________
 From: Mark Sutheran <mark_sutheran at yahoo.com>
To: ZeroMQ development list <zeromq-dev at lists.zeromq.org> 
Sent: Saturday, 7 July 2012, 22:36
Subject: Re: [zeromq-dev] Asymmetrical PUB-SUB problem
 

Thanks for the suggestion Joshua. Unfortunately this doesn't fix the problem.

(I restricted the publisher to the one interface in order to avoid any possible confusion due to potential routing through some other interface)

However to add to the information - the SUB on box B can successfully connect to and receive data from any valid interface (wlan0, localhost, eth0) when the PUB binds to *.

Cheers,

Mark


________________________________
 From: Joshua Foster <jhawk28 at gmail.com>
To: Mark Sutheran <mark_sutheran at yahoo.com>; ZeroMQ development list <zeromq-dev at lists.zeromq.org> 
Sent: Saturday, 7 July 2012, 22:14
Subject: Re: [zeromq-dev] Asymmetrical PUB-SUB problem
 

Try binding to * on box b 
when publishing.

Joshua


Mark Sutheran
>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
>
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev



_______________________________________________
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/8b0301ff/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/8b0301ff/attachment.jpg>


More information about the zeromq-dev mailing list