mirror of https://github.com/oxen-io/oxen-mq.git
Reduce heartbeat frequency to 15s
3s was excessive especially considering that the default heartbeat timeout is set to 30s.
This commit is contained in:
parent
238dfa7f78
commit
fc1ea66599
|
@ -232,7 +232,7 @@ public:
|
||||||
* Only new connections created after changing this are affected, so if changing it is
|
* Only new connections created after changing this are affected, so if changing it is
|
||||||
* recommended to set it before calling `start()`.
|
* recommended to set it before calling `start()`.
|
||||||
*/
|
*/
|
||||||
std::chrono::milliseconds CONN_HEARTBEAT = 3s;
|
std::chrono::milliseconds CONN_HEARTBEAT = 15s;
|
||||||
|
|
||||||
/** When CONN_HEARTBEAT is enabled, this sets how long we wait for a reply on a socket before
|
/** When CONN_HEARTBEAT is enabled, this sets how long we wait for a reply on a socket before
|
||||||
* considering the socket to have died and closing it.
|
* considering the socket to have died and closing it.
|
||||||
|
|
Loading…
Reference in New Issue