Use 120 seconds timeout for service connect operation
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Oct 2009 01:36:53 +0000 (03:36 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Oct 2009 01:36:53 +0000 (03:36 +0200)
src/service.c

index 6c9008e..7c26606 100644 (file)
@@ -30,6 +30,7 @@
 #include "connman.h"
 
 #define MAX_CONNECT_RETRIES    2
+#define CONNECT_TIMEOUT                120
 
 static DBusConnection *connection = NULL;
 
@@ -1571,7 +1572,7 @@ int __connman_service_connect(struct connman_service *service)
                        return err;
                }
 
-               service->timeout = g_timeout_add_seconds(45,
+               service->timeout = g_timeout_add_seconds(CONNECT_TIMEOUT,
                                                connect_timeout, service);
 
                return -EINPROGRESS;