Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Heartbeating not supported by RADIO/DISH #3551

Open
jean-airoldie opened this issue Jun 22, 2019 · 2 comments
Open

Problem: Heartbeating not supported by RADIO/DISH #3551

jean-airoldie opened this issue Jun 22, 2019 · 2 comments

Comments

@jean-airoldie
Copy link
Contributor

jean-airoldie commented Jun 22, 2019

Related to #3550

Issue description

Setting a ZMQ_HEARTBEAT_IVL to either (or both) DISH or RADIO eventually causes the DISH socket to no longuer receive messages over TCP.

Environment

  • libzmq version (commit hash if unreleased): fcf828d
  • OS: Fedora 29

Minimal test code / Steps to reproduce the issue

  • Create and bind a RADIO socket to a TCP endpoint. Set ZMQ_HEARTBEAT_IVL on the RADIO socket to any reasonable value.
  • Create and connect a DISH socket to the bound endpoint. Set ZMQ_RCVTIMEO to something reasonable.
  • Wait a bit for the connection to be established.
  • Now send message from the RADIO socket and receive them from the DISH in a loop.

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

The DISH socket will receive messages for a while, but eventually all recv calls
will return EAGAIN.

What's the expected result?

The DISH socket should always receive the messages coming from the RADIO socket.

@bluca
Copy link
Member

bluca commented Jun 23, 2019

Heartbeat is not implemented by the udp engine

@jean-airoldie
Copy link
Contributor Author

jean-airoldie commented Jun 23, 2019

I'll add some clarification, I was using TCP in my case. So I'm pretty sure this is a bug as opposed to a feature request.

Nevermind the RADIO and DISH sockets both use the udp_engine implementation, which does not yet support heatbeating, like bluca said.

@jean-airoldie jean-airoldie changed the title Problem: Hearbeating with RADIO/DISH always times out Problem: TCP Hearbeating with RADIO/DISH always times out Jun 23, 2019
@jean-airoldie jean-airoldie changed the title Problem: TCP Hearbeating with RADIO/DISH always times out Problem: Hearbeating not supported by RADIO/DISH Jun 24, 2019
@sigiesec sigiesec changed the title Problem: Hearbeating not supported by RADIO/DISH Problem: Heartbeating not supported by RADIO/DISH Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants