zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.64k stars 2.35k forks source link

LIBZMQ RADIO/DISH zmq_msg_recv method never receives message sent #4112

Open richardwei6 opened 3 years ago

richardwei6 commented 3 years ago

Issue description

I'm trying to create my own Swift wrapper for the draft sockets/methods RADIO/DISH and I can directly call libzmq's c++ methods from it. However, I'm having trouble sending and receiving messages. I've verified that both python scripts do work with the draft methods on MacOS with pyzmq but when trying to receive/send messages by calling libzmq directly, nothing happens. I'm basing my cpp files off of this function: https://github.com/zeromq/libzmq/blob/master/tests/test_radio_dish.cpp#L73 and https://github.com/zeromq/libzmq/blob/master/tests/test_radio_dish.cpp#L56.

Thanks in advance for the help.

Environment

Minimal test code / Steps to reproduce the issue

**1. Clone https://github.com/richardwei6/ZMQ-RADIO-DISH-CPP-EXAMPLE

  1. Open VS project in ZMQ-RADIO-DISH-CPP-EXAMPLE
  2. First, install pyzmq with drafts then, run DISH project and run this python script.
  3. OR Run Both RADIO and DISH Projects by pressing start on the top of VS
  4. No data is sent in between programs.**

What's the actual result? (include assertion message & call stack if applicable)

No output / zmq_msg_send hangs / zmq_msg_recv doesn't receive.

What's the expected result?

The string is received by DISH project.

advancedwebdeveloper commented 3 years ago

I wonder it is related: I got one test failing, on RISC-V.

99% tests passed, 1 tests failed out of 128

Total Test time (real) = 214.18 sec

The following tests did not run: 73 - test_connect_null_fuzzer (Skipped) 74 - test_bind_null_fuzzer (Skipped) 75 - test_connect_fuzzer (Skipped) 76 - test_bind_fuzzer (Skipped) 78 - test_connect_curve_fuzzer (Skipped) 79 - test_bind_curve_fuzzer (Skipped) 80 - test_z85_decode_fuzzer (Skipped) 97 - test_address_tipc (Skipped) 98 - test_pair_tipc (Skipped) 99 - test_reqrep_device_tipc (Skipped) 100 - test_reqrep_tipc (Skipped) 102 - test_sub_forward_tipc (Skipped) 103 - test_connect_delay_tipc (Skipped) 104 - test_shutdown_stress_tipc (Skipped)

The following tests FAILED: 110 - test_radio_dish (Timeout) Errors while running CTest

richardwei6 commented 3 years ago

I got this when running the radio dish test on Windows 10 with libzmq 4.3.4

image

richardwei6 commented 3 years ago

I got this when running the radio dish test on MacOS with libzmq 4.3.4

image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.