We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 360a604 commit 57433a1Copy full SHA for 57433a1
projects/client/RabbitMQ.Client/src/client/impl/Connection.cs
@@ -235,7 +235,7 @@ public ushort Heartbeat
235
m_heartbeat = value;
236
// timers fire at half the interval to avoid race
237
// conditions
238
- m_heartbeatTimeSpan = TimeSpan.FromSeconds(value / 2);
+ m_heartbeatTimeSpan = TimeSpan.FromMilliseconds((value * 1000) / 2.0);
239
m_frameHandler.Timeout = (value * 1000) / 2;
240
}
241
0 commit comments