[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/services
From:       Stephan Kulow <coolo () kde ! org>
Date:       2004-09-02 6:11:11
Message-ID: 20040902061111.C2B2C1CC2 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

these short time out are causing a lot of trouble. And as soon as the trouble
starts, it's getting worse and worse ;(


  M +4 -3      comm.cpp   1.111


--- kdenonbeta/icecream/icecream/services/comm.cpp  #1.110:1.111
@@ -506,10 +506,11 @@ Service::Service (const string &hostname
         **  Protect against an infinite loop.
         */
-        if (tries++ >= 100) { // 10s
+        if (tries++ >= 5) { // 10s
+          close(remote_fd);
           return;
         }
 
-        select_timeout.tv_sec = 0;
-        select_timeout.tv_usec = 100000;
+        select_timeout.tv_sec = 2;
+        select_timeout.tv_usec = 0;
         FD_ZERO(&writefds);
         FD_SET(remote_fd, &writefds);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic