mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
reconnect: Add connection attempt limiting feature.
Sometimes it is useful to limit the number of connection attempts, either from policy or because it is not possible to reconnect at all (e.g. because a connection was accepted from a listening socket instead of made with connect()). This commit adds that feature.
This commit is contained in:
@@ -42,6 +42,9 @@ int reconnect_get_min_backoff(const struct reconnect *);
|
||||
int reconnect_get_max_backoff(const struct reconnect *);
|
||||
int reconnect_get_probe_interval(const struct reconnect *);
|
||||
|
||||
void reconnect_set_max_tries(struct reconnect *, unsigned int max_tries);
|
||||
unsigned int reconnect_get_max_tries(struct reconnect *);
|
||||
|
||||
void reconnect_set_backoff(struct reconnect *,
|
||||
int min_backoff, int max_backoff);
|
||||
void reconnect_set_probe_interval(struct reconnect *, int probe_interval);
|
||||
|
||||
Reference in New Issue
Block a user