add option to stop trying to reconnect on ECONNREFUSED (#3831)

* add option to stop trying to reconnect on ECONNREFUSED
This commit is contained in:
Bill Torpey
2020-02-23 12:17:22 -05:00
committed by GitHub
parent 66ee3ee46c
commit debbe08fb8
17 changed files with 377 additions and 33 deletions

View File

@@ -116,6 +116,10 @@ struct options_t
// Default 0 (unused)
int tcp_maxrt;
// Disable reconnect under certain conditions
// Default 0
int reconnect_stop;
// Minimum interval between attempts to reconnect, in milliseconds.
// Default 100ms
int reconnect_ivl;