[zeromq-dev] Duplicate messages on subscriber reconnect in pub/sub pair
benn at f5.com
Fri May 13 18:31:03 CEST 2011
> > Just to clarify - I don't believe this is any pub queuing case, since
> > the duplications occur indefinitely. Rather it's an issue with
> > having the same 'fd' value registered in the internal data structures
> > multiple times, since it never gets any kind of notification from
> > epoll that the fd has been artificially closed.
> Not even EPOLLERR?
I haven't experimented directly, but the documentation indicates that it just gets cleaned up. There was some mildly related discussion on this point here: http://lwn.net/Articles/430793/
I haven't banged together a test case, but if it is generating an EPOLLERR, then 0mq surely isn't cleaning up the lingering reference internally.
More information about the zeromq-dev