From: Marcel Holtmann Date: Fri, 2 Oct 2009 01:36:53 +0000 (+0200) Subject: Use 120 seconds timeout for service connect operation X-Git-Tag: 2.0_alpha~3205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72712fd6b8a31b97a527c7d60bb18e175752b31b;p=framework%2Fconnectivity%2Fconnman.git Use 120 seconds timeout for service connect operation --- diff --git a/src/service.c b/src/service.c index 6c9008e..7c26606 100644 --- a/src/service.c +++ b/src/service.c @@ -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;