[zeromq-dev] Test test_pair_tcp.cpp hangs at bounce()
Luca Boccassi
luca.boccassi at gmail.com
Wed Feb 28 21:08:54 CET 2018
On Wed, 2018-02-28 at 11:40 -0800, Manuel Segura wrote:
> Hello,
>
> I'm porting libzmq to VxWorks and the test_pair_tcp.cpp test hangs
> inside
> the bounce() function call, specifically the first zmq_recv() call.
> I've
> traced this to zmq_recv() => s_recvmsg() => s_->recv() =>
> process_commands()
> => mailbox->recv() => signaler.wait() => select(). It seems xrecv()
> fails
> and it goes into a blocking wait.
>
> What would be some reasons that this would hang?
>
> Thank you,
>
> Manuel
Hi,
Do other tests fail? Or only that one?
You can try and add socket monitors to check that the handshake
succeeds:
https://github.com/zeromq/libzmq/blob/master/doc/zmq_socket_monitor.txt
Alternatively, given it's a tcp test, you can use wireshark/tshark with
the zmtp dissector to snoop on the wire:
https://github.com/whitequark/zmtp-wireshark
--
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180228/3974cbae/attachment.sig>
More information about the zeromq-dev
mailing list