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.
Cheers,
Laurent
Le 15/10/2013 12:59, Pieter Hintjens a écrit :
On Tue, Oct 15, 2013 at 12:49 PM, Laurent Alebarde <[email protected]> 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
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev