zeromq / netmq

A 100% native C# implementation of ZeroMQ for .NET
Other
2.94k stars 742 forks source link

Question about Heartbeat timeout and long running queries. #1029

Open valeriob opened 2 years ago

valeriob commented 2 years ago

Environment

NetMQ Version:    4.0.1.8
Operating System: Windows 10
.NET Version:    net6.0

I've been using those parameters to intercept network connection changes, i'm running many devices in an big indoor environment.

socket.Options.HeartbeatInterval = TimeSpan.FromSeconds(15); socket.Options.HeartbeatTimeout = TimeSpan.FromSeconds(5);

Problem is that in some other environment I can have slower queries than the timeout, so those query will never be able to perform because the Heartbeat basically kills them every time. It looks like that the timeout "channel" is not running if i'm waiting for a message to a request response socket, is it correct ? Would be usefull that the Heartbeat would be able to perform also during those exchanges, is it possible to configure it that way ?

Thanks Valerio