On Thu, Sep 9, 2010 at 7:17 PM, david starkweather <[email protected]> wrote:

> Ok, managed to make minimal test case here:
> http://pastebin.com/apnrqk2C

Yes, this is much simpler and easier to work with.  Thanks.

When I run the server I get this, every single time:

bind to lo:4000
create worker thread
subscribe
srv: srv.c:117: main: Assertion `rc == 0' failed.
Aborted (core dumped)

Adding a sleep(1) before the connect fixes that, it's a normal
synchronization issue.

Now the client says this:

send multipart message: uint8_t | uint32_t
sent cmd = 1, nb = 25
^C

And the server says this:

bind to lo:4000
create worker thread
subscribe
WORKER: ready to recieve messages
MAIN: set up queue dev
MAIN: set up fwd dev
MAIN: wait for msg to fwd
recieved cmd 1
recieved nb 25
MAIN:recvd msg 0
MAIN: send, more flag, 1
MAIN: wait for msg to fwd
MAIN:recvd msg 1
MAIN: send, more flag, 0
MAIN: wait for msg to fwd
^C
Is this the proper (working) sequence, or is this showing the issue?

-
Pieter Hintjens
iMatix - www.imatix.com
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to