[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

extras-buildsys/client buildclient.py,1.18,1.19



Author: dcbw

Update of /cvs/fedora/extras-buildsys/client
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22004/client

Modified Files:
	buildclient.py 
Log Message:
2005-06-26  Dan Williams <dcbw redhat com>

    * client/buildclient.py
      common/SSLCommon.py
      common/SimpleHTTPSServer.py
      common/SimpleSSLXMLRPCServer.py
        - Set a much lower socket read timeout than the default, which
            is 600 seconds.  We don't want clients blocking the server
            for too long, and non-blocking sockets are a bit too
            complicated at this time.




Index: buildclient.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/client/buildclient.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- buildclient.py	26 Jun 2005 14:52:24 -0000	1.18
+++ buildclient.py	27 Jun 2005 02:40:54 -0000	1.19
@@ -572,6 +572,13 @@
         except KeyboardInterrupt, e:
             print "Shutting down..."
             break
+        except socket.error, e:
+            if e[0] == 11:      # Resource temporarily unavailable
+                try:
+                    time.sleep(0.1)
+                except KeyboardInterrupt, e:
+                    print "Shutting down..."
+                    break
 
         cur_time = time.time()
         if cur_time >= last_time + 3:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]