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

Martin Lucina mato at kotelna.sk
Thu Nov 25 15:36:20 CET 2010


oleg.sev at gmail.com said:
> 2010/11/24 Martin Lucina <mato at kotelna.sk>:
> > 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.
> I try to copy POSIX implementation function "send" into the Winsock
> implementation of send in mailbox_t. It works good. Now I run 5 client
> with 50 threads on three computers. But regularly I have debug
> assertion "Address already in use" in mailbox.cpp:347.

You'd have to show a patch, line 347 is obviously different in your
modified version.

Note that it won't work correctly just with send(), you also need the retry
code in recv() otherwise you'd get intermittent failures.


More information about the zeromq-dev mailing list