[ovs-dev] [netdev dummy 2/2] netdev-dummy: Reduce reconnect back off timeout

Andy Zhou azhou at nicira.com
Tue Feb 11 19:41:50 UTC 2014


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 at nicira.com>
---
 lib/netdev-dummy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
index 5d917a6..6b9dfb9 100644
--- a/lib/netdev-dummy.c
+++ b/lib/netdev-dummy.c
@@ -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;
-- 
1.7.9.5




More information about the dev mailing list