diff options
author | Ben Pfaff <blp@nicira.com> | 2010-11-02 16:20:08 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-11-05 10:20:02 -0700 |
commit | f71fb70430d4f50bd055e1657a91d0c50c8bbccb (patch) | |
tree | a492e98d99cc65024440973947c490e079a0b627 /lib/reconnect.h | |
parent | fca64c1292812ebea45433b104b9549a02ea268d (diff) |
reconnect: Use macros instead of literals for default timeouts.
Diffstat (limited to 'lib/reconnect.h')
-rw-r--r-- | lib/reconnect.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/reconnect.h b/lib/reconnect.h index 418f3e87..d316448f 100644 --- a/lib/reconnect.h +++ b/lib/reconnect.h @@ -40,6 +40,11 @@ void reconnect_set_quiet(struct reconnect *, bool quiet); const char *reconnect_get_name(const struct reconnect *); void reconnect_set_name(struct reconnect *, const char *name); +/* Defaults, all in msecs. */ +#define RECONNECT_DEFAULT_MIN_BACKOFF 1000 +#define RECONNECT_DEFAULT_MAX_BACKOFF 8000 +#define RECONNECT_DEFAULT_PROBE_INTERVAL 5000 + int reconnect_get_min_backoff(const struct reconnect *); int reconnect_get_max_backoff(const struct reconnect *); int reconnect_get_probe_interval(const struct reconnect *); |