[zeromq-dev] Hangs on function return
Thomas S Hatch
thatch45 at gmail.com
Sun Nov 13 18:13:48 CET 2011
On Sat, Nov 12, 2011 at 11:37 PM, Thomas S Hatch <thatch45 at gmail.com> wrote:
> I am seeing something interesting that I suspect is a pyzmq issue. I have
> some code that connects to a REP server and shoots off a REQ,
> then receives. I am changing the code to not hang if the REP server is not
> responding but it hangs when the python function returns. Any ideas what
> could be causing this?
>
> Here is the code (same issue with a poller):
> http://pastebin.com/XGzLxM0j
>
>
> Any ideas?
>
With some added info, when the application hangs and I hit ctrl-C I get
this error:
Exception KeyboardInterrupt in <zmq.core.context.Context object at
0x2722cb0> ignored
Which leads me to believe that the context is not being cleaned up
correctly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111113/35cece2d/attachment.htm>
More information about the zeromq-dev
mailing list