[zeromq-dev] odd zmqstream.py behavior

MinRK benjaminrk at gmail.com
Wed Oct 6 10:13:48 CEST 2010


Brian,

I added to my zmqstream branch, which updates the zmqstream object to have
the rest of the socket interface (now everything except recv*).  It also no
longer closes the socket on an error in a callback, it merely unregisters
the callback.

Steve,

I can't actually reproduce the issue at the head of this topic with master,
though.  I see the loop properly logging the error and marching right along,
having closed and detached the socket. Can you post a sample of where it
hangs, and check against my zmqstream branch on github (
http://github.com/minrk/pyzmq/tree/zmqstream) to see if that behaves any
better?

I'm using zmq 2.0.9.

-MinRK

On Mon, Oct 4, 2010 at 20:20, Brian Granger <ellisonbg at gmail.com> wrote:

> Hi,
>
> Min and I looked at this today and this is a bug in pyzmq.  When a
> callback in the eventloop raises, we are currently closing the socket,
> which we should not do.  We are still figuring out the error handling
> symantics, but we should have a fix in place soon in pyzmq master.
>
> Cheers,
>
> Brian
>
> On Fri, Oct 1, 2010 at 7:08 PM, Pieter Hintjens <ph at imatix.com> wrote:
> > On Sat, Oct 2, 2010 at 3:58 AM, Steve Huffman <steve at hipmunk.com> wrote:
> >
> >> I don't think so. I'll try the new version, but what the behavior I'm
> seeing
> >> is zmq_close() doesn't return when an exception is thrown in the
> callback.
> >
> > I didn't read your email properly, sorry... zmq_close() should not block.
> >
> > If you can follow what zmqstream is doing, and get a straight pyzmq
> > example that has the same behavior, that'll make it easier to debug.
> >
> > -Pieter
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
> _______________________________________________
> 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/20101006/13a51f5c/attachment.htm>


More information about the zeromq-dev mailing list