In "tcp" model, zmq_assert(sessions.empty()) when close router socket.
Description
Environment
windowsXP, windows 7, windows server 2008R2.
Visual stdio 2008Sp1
Attachments
Activity

david June 27, 2012 at 6:42 AM
Okay, i will test it in version 3.2 and then tell you the test result, thx!
发件人: Martin Hurton (JIRA) jira@zeromq.jira.com
发送时间: 2012年6月27日 14:33
收件人: yuhongweiyf@hikvision.com
主题: [JIRA] (LIBZMQ-367) In "tcp" model, zmq_assert(sessions.empty()) when close router socket.
说明: 图像已被发件人删除。
说明: 图像已被发件人删除。 <https://zeromq.jira.com/secure/ViewProfile.jspa?name=hurtonm> Martin Hurton commented on 说明: 图像已被发件人删除。 Bug <https://zeromq.jira.com/browse/LIBZMQ-367>
<https://zeromq.jira.com/browse/LIBZMQ-367> In "tcp" model, zmq_assert(sessions.empty()) when close router socket.
David, I wonder if this happens in version 3.2 too. Could you please test it?
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your <https://zeromq.jira.com/secure/ContactAdministrators!default.jspa> JIRA administrators.
For more information on JIRA, see: <http://www.atlassian.com/software/jira> http://www.atlassian.com/software/jira

Martin Hurton June 27, 2012 at 6:31 AM
David, I wonder if this happens in version 3.2 too. Could you please test it?

Martin Hurton June 9, 2012 at 4:02 PM
Did anyone manage to reproduce this behaviour on Linux?

Mikko Koppanen May 10, 2012 at 9:16 AM
zmq_test_case.c with pthreads

david May 10, 2012 at 9:05 AM
we rewrite the test case in c file, thanks!
Dealer<->Router with "tcp".
We initialize the io thread numbers = 2. We use dealer and router send messages to each other, and we get a zmq_assert ( zmq_assert (sessions.empty ()) ) sometimes when we close the router socket. But we initialize the io thread numbers = 1, or set affinity option(such as affinity = 1), the assert never appears.