[zeromq-dev] Stress test failed with assertion nbytes == sizeof (command_t) mailbox.cpp:78

Martin Lucina mato at kotelna.sk
Wed Nov 24 14:46:09 CET 2010


Hi Oleg,

oleg.sev at gmail.com said:
> I do something like stress test.
> 
> Three client application create 40 threads, each thread connects with
> own socket to server application (120 connections). The client use
> ZMQ_REQ socket and send 300 bytes request to server. The server send
> this request back to client. When server process over 500000 messages
> it's fail with debug assertion "nbytes == sizeof (command_t) in
> mailbox.cpp:78".
> 
> The server application sources here: http://pastebin.com/NhCVRr4s.
> The client application sources here: http://pastebin.com/hUdtzZy3
> 0MQ sources: 2.1
> Test platform: Windows 7, MSVC 2005 build.

This is a known issue, see the TODO comment in the Winsock implementation
of mailbox_t.  The POSIX code for retry/auto-resizing of socket buffers
needs to be ported to and tested on Windows.

Patches welcome :-)

-mato



More information about the zeromq-dev mailing list