You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve implemented a manual heartbeat (PublisherSocket to SubscriberSocket) set to every 10 seconds, and a keep-alive (RequestSocket to ResponseSocket) every 30 seconds(2 retries).
The purpose is to detect connection loss (so we can reconnect) and to prevent the connection from being dropped due to inactivity.
I’m aware that NetMQ has built-in support for both heartbeat and keep-alive, but they are disabled by default, and it seems many developers tend to avoid using them.
So, is there actually a need for implementing manual heartbeat and keep-alive like I’ve done?
Regards
The text was updated successfully, but these errors were encountered:
Hi,
I’ve implemented a manual heartbeat (PublisherSocket to SubscriberSocket) set to every 10 seconds, and a keep-alive (RequestSocket to ResponseSocket) every 30 seconds(2 retries).
The purpose is to detect connection loss (so we can reconnect) and to prevent the connection from being dropped due to inactivity.
I’m aware that NetMQ has built-in support for both heartbeat and keep-alive, but they are disabled by default, and it seems many developers tend to avoid using them.
So, is there actually a need for implementing manual heartbeat and keep-alive like I’ve done?
Regards
The text was updated successfully, but these errors were encountered: