netdev-dummy: Reduce reconnect back off timeout
authorAndy Zhou <azhou@nicira.com>
Sat, 8 Feb 2014 01:25:42 +0000 (17:25 -0800)
committerAndy Zhou <azhou@nicira.com>
Wed, 12 Feb 2014 18:21:06 +0000 (10:21 -0800)
netdev-dummy will mostly be used for testing and debugging over fairly
reliable connection. Reduce reconnect back off timeout in case the first
connect attempt failed.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/netdev-dummy.c

index da5bb82..f23fc9f 100644 (file)
@@ -369,7 +369,7 @@ dummy_packet_conn_set_config(struct dummy_packet_conn *conn,
         reconnect_set_name(reconnect, stream);
         reconnect_set_passive(reconnect, false, time_msec());
         reconnect_enable(reconnect, time_msec());
-        reconnect_set_backoff(reconnect, 1000, INT_MAX);
+        reconnect_set_backoff(reconnect, 100, INT_MAX);
         reconnect_set_probe_interval(reconnect, 0);
         conn->u.rconn.reconnect = reconnect;
         conn->type = ACTIVE;