Adjust SocketConfig's connection retry num 17/33617/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 25 Sep 2014 06:05:16 +0000 (15:05 +0900)
committerLi Zhang <li2012.zhang@samsung.com>
Tue, 13 Jan 2015 10:04:21 +0000 (18:04 +0800)
Change-Id: Ibdfe4ff95df851ddcbd12d50cbbad52cfbf5ed24

ism/modules/config/scim_socket_config.cpp

index a21172d..c64313e 100644 (file)
@@ -632,8 +632,8 @@ SocketConfig::open_connection () const
 
     // Connect to SocketFrontEnd.
     if (!m_socket_client.connect (socket_address)) {
-        /* Retry connecting atmost 10 seconds */
-        for (int i = 0; i < 100; ++i) {
+        /* Retry connecting considering the ANR timeout */
+        for (int i = 0; i < 3; ++i) {
             if (m_socket_client.connect (socket_address))
                 break;
             scim_usleep (100000);