Reduce heartbeat frequency to 15s

3s was excessive especially considering that the default heartbeat
timeout is set to 30s.
This commit is contained in:
Jason Rhinelander 2020-04-18 02:58:22 -03:00
parent 238dfa7f78
commit fc1ea66599
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ public:
* Only new connections created after changing this are affected, so if changing it is
* 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
* considering the socket to have died and closing it.