[zeromq-dev] in pyzmq with tornado ioloop, destroy of context cause blocked poll system call
Dongkuo Ma
luc.mdk at gmail.com
Tue Apr 16 04:56:04 CEST 2013
Hi,
sorry for my poor English.
My program is the ROUTER model (connecting 2 DEALER programs via unix
domain socket) on linux x86_64,work with tornado ioloop.
I registered a clean function for the sigterm, and in this function i call
the ioloop.stop() ,stream.close() and context.destroy().
I found the context.destroy() call the poll system call (ioloop has been
stoped).
In most case , the poll system call return [{fd=9, revents=POLLIN}], but
sometimes always wait ,which cause the process cann't exit.
The attachment is part of the lsof and strace output.
Btw, the tornado ioloop using epoll without pyzmq, but using poll with
pyzmq.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130416/ae9f8366/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.log
Type: application/octet-stream
Size: 3338 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130416/ae9f8366/attachment.obj>
More information about the zeromq-dev
mailing list