[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zeromq-dev
Subject:    Re: [zeromq-dev] ZMQ PUB-SUB problem
From:       Steven McCoy <steven.mccoy () miru ! hk>
Date:       2013-06-27 18:59:30
Message-ID: CAGFWLiidG1y_=0Fa3t3vDJxOxahoxXT7zfsosFA=OgQHL3Ts9A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 27 June 2013 02:19, Amar Pol <amarpol1305@gmail.com> wrote:

> Now if some how *IP address of subscriber(biometric device in our case)
> changes , communication breaks*.
>
>
Ideally when the IP address changes the socket disconnects and 0mq's
reconnection mechanism kicks in and recovers.  However this can be highly
dependent upon the DHCP mechanism whether the interface is re-plumbed or
not.

The typical solution for sockets on say Linux is to subscribe to a NETLINK
socket receive interface change notifications and then tear down the socket
and reconnect.

An actual trace of what is happening in libzmq after the address has
changed would be useful.  Does the OS think the socket is still open?

-- 
Steve-o

[Attachment #5 (text/html)]

On 27 June 2013 02:19, Amar Pol <span dir="ltr">&lt;<a \
href="mailto:amarpol1305@gmail.com" \
target="_blank">amarpol1305@gmail.com</a>&gt;</span> wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">

Now if some how <b>IP address of subscriber(biometric device in our case) changes , \
communication breaks</b>. <br><br></blockquote><div><br></div><div>Ideally when the \
IP address changes the socket disconnects and 0mq&#39;s reconnection mechanism kicks \
in and recovers.  However this can be highly dependent upon the DHCP mechanism \
whether the interface is re-plumbed or not.</div>

<div><br></div><div>The typical solution for sockets on say Linux is to subscribe to \
a NETLINK socket receive interface change notifications and then tear down the socket \
and reconnect.</div><div><br></div><div>An actual trace of what is happening in \
libzmq after the address has changed would be useful.  Does the OS think the socket \
is still open?</div>

<div><br></div><div>-- </div><div>Steve-o</div></div>



_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic