[zeromq-dev] Asynchronous client-to-server (DEALER to ROUTER) without czmq - assert on bind

Laurent Alebarde l.alebarde at free.fr
Tue Oct 15 15:27:17 CEST 2013

So, can you see any obvious reason why this 
<http://pastebin.com/zr2G8VG0> does not work please ?

Nor the client which performs pooling, nor the server worker which does 
not use pooling, receive any message on their SUB socket they have 
subscribed to - either as a runtime program, or in a debugging session 
with a breakpoint onto "rc = zmq_send (control, "TERMINATE", 10, 0);" to 
be sure to send messages when every other threads are ready.

The reason of
#include "testutil.hpp"
#include "../include/zmq_utils.h"
is I have added it as a test in my libzmq experimental branch.



Le 15/10/2013 12:59, Pieter Hintjens a écrit :
> On Tue, Oct 15, 2013 at 12:49 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:
>> Thanks Pieter. My problem came from I forgot to configure the debugger for
>> multithreading.
> It can be fun when the debugger introduces its own problems. That's
> one reason I never use a debugger.
>> I have one question please : is it "legal" to use a PUB socket without a
>> poller ? In my test, I receive nothing.
> For sure, it's legal. You do have to give the subscriber time to
> connect, or everything will be sent and dropped in the 50msec or so it
> takes for the connect to complete.
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131015/e13753db/attachment.htm>

More information about the zeromq-dev mailing list