Commit Graph

6 Commits

Author SHA1 Message Date
NI
36ee034bcf Use ReadTimeout*0.8 as max heartBeatTimeout rather than ReadTimeout/2.
Heartbeat is usually returned very quickly, no need to force two heartbeat within one read timeout period.

User can change the configuration to bring back the setting if needed.
2019-08-13 10:55:48 +08:00
NI
f3336d61a0 Make DialTimeout configurable. 2019-08-12 23:50:24 +08:00
NI
2f670d625a Better value calculation, prevents the zero HeartbeatTimeout problem. 2019-08-10 15:41:22 +08:00
NI
4f0d899346 Calculate HeartbeatTimeout configuration in the right way. 2019-08-10 14:54:18 +08:00
NI
5e9e308d8a Fixed a bug causing .WithDefault to reset settings: I forgot to assign values. 2019-08-09 16:25:56 +08:00
NI
02f14eb14f Initial commit 2019-08-07 15:56:51 +08:00