ubus: increase ubus network interface dump timeout
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 17 May 2017 12:49:17 +0000 (14:49 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 17 May 2017 13:01:05 +0000 (15:01 +0200)
When netifd is being stressed (eg doing reconfig using multiple interfaces)
ubus timeouts can be observed when invoking network interface dump.
Increase the ubus timeout to 2000 msec similar to the service ubus timeout.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
ubus.c

diff --git a/ubus.c b/ubus.c
index dd1075f..bcbe1e8 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -51,7 +51,7 @@ fw3_ubus_connect(void)
        if (ubus_lookup_id(ctx, "network.interface", &id))
                goto out;
 
-       if (ubus_invoke(ctx, id, "dump", NULL, dump_cb, NULL, 500))
+       if (ubus_invoke(ctx, id, "dump", NULL, dump_cb, NULL, 2000))
                goto out;
 
        status = true;