From: Ben Pfaff Date: Thu, 18 Sep 2008 16:47:18 +0000 (-0700) Subject: Fix failure to back off when vconn_open() fails immediately. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a3cc1e3dc7c7d838c7d22827a9eff2e0efce5e;p=openvswitch Fix failure to back off when vconn_open() fails immediately. This typically would happen only with an entirely local vconn, e.g. connecting to a Unix domain socket vconn. --- diff --git a/lib/rconn.c b/lib/rconn.c index fabd61ee..81954955 100644 --- a/lib/rconn.c +++ b/lib/rconn.c @@ -279,6 +279,7 @@ reconnect(struct rconn *rc) state_transition(rc, S_CONNECTING); } else { VLOG_WARN("%s: connection failed (%s)", rc->name, strerror(retval)); + rc->backoff_deadline = TIME_MAX; /* Prevent resetting backoff. */ disconnect(rc, 0); } return retval;