Commit Graph

11 Commits

Author SHA1 Message Date
NI
b5ebe6759c Update copyright date to 2020. Happy new year! 2019-12-29 14:11:54 +08:00
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
ee7a6a4703 Support SSHWIFTY_ENV_RENAMED: prefix. When the value of an environment variable is prefixed with SSHWIFTY_ENV_RENAMED:, read another environment variable. For example: if SSHWIFTY_LISTENPORT = SSHWIFTY_ENV_RENAMED:PORT, the final value will be read from $PORT.
This is useful if the application is running on a cloud platform which force application to use their environment variables.
2019-08-11 12:12:44 +08:00
NI
2f670d625a Better value calculation, prevents the zero HeartbeatTimeout problem. 2019-08-10 15:41:22 +08:00
NI
8a9a483dd6 Add Direct configuration loader 2019-08-10 15:02:57 +08:00
NI
fa48b6aa34 Better message 2019-08-10 15:01:11 +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
539aa71e4e Returning the missing loader name. 2019-08-07 16:49:32 +08:00
NI
02f14eb14f Initial commit 2019-08-07 15:56:51 +08:00