Fix failure to back off when vconn_open() fails immediately.
authorBen Pfaff <blp@nicira.com>
Thu, 18 Sep 2008 16:47:18 +0000 (09:47 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Sep 2008 16:48:37 +0000 (09:48 -0700)
This typically would happen only with an entirely local vconn,
e.g. connecting to a Unix domain socket vconn.

lib/rconn.c

index fabd61eea6bad7021d6220249dfe422cedd0a8ae..81954955e65fc875e75cddb5b3f7a401772b4f1d 100644 (file)
@@ -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;