rconn: Use rconn_send() to send echo requests.
authorBen Pfaff <blp@nicira.com>
Wed, 13 Aug 2008 18:26:26 +0000 (11:26 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Aug 2008 18:26:26 +0000 (11:26 -0700)
There's no point in sending echo requests by hand.

lib/rconn.c

index a4ff91a2e90e05321f1f7b6ae1c0efecf7e83029..da3ffb676f0b4f3da60a8f0fa8119d9838a1ed29 100644 (file)
@@ -334,7 +334,7 @@ run_ACTIVE(struct rconn *rc)
 {
     if (timed_out(rc)) {
         unsigned int base = MAX(rc->last_received, rc->state_entered);
-        queue_push_tail(&rc->txq, make_echo_request());
+        rconn_send(rc, make_echo_request(), NULL);
         VLOG_DBG("%s: idle %u seconds, sending inactivity probe",
                  rc->name, (unsigned int) (time_now() - base));
         state_transition(rc, S_IDLE);