On Mon, Jul 9, 2012 at 1:14 PM, Chuck Remes <[email protected]> wrote:
> > On Jul 9, 2012, at 1:58 PM, Thomas S Hatch wrote: > > On Mon, Jul 9, 2012 at 12:52 PM, Ian Barber <[email protected]> wrote: > >> >> >> On Mon, Jul 9, 2012 at 7:13 PM, Thomas S Hatch <[email protected]>wrote: >> >>> No, I am confident that we are not passing sockets through threads or >>> processes. >>> Could this have anything to do with closing and re opening connections? >>> >> >> Do you pull the FD out directly, or is this just from accessing via the >> regular ZMQ_ functions? Also, do you have any idea how quickly a socket >> might be destroyed and recreated or similar? >> >> Ian >> >> > There is an option in Salt that makes the SUB socket close and reconnect > to the master every N seconds to recover from disconnection over unreliable > connections, aka the internet. The default is every 60 seconds > > It just uses the regular ZMQ function via pyzmq > > > Can we assume that this socket is removed from the poll items list that > zmq_poll() uses? (I am assuming you are using zmq_poll() in Salt and that > these SUB sockets are added/deleted as necessary.) > > cr > > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > Yes, they are, here is the code: https://github.com/saltstack/salt/blob/develop/salt/minion.py#L470 I do not doubt that I have made a mistake in here
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
