extras-buildsys/common HTTPServer.py,1.6,1.7
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Fri Nov 18 14:43:11 UTC 2005
Author: dcbw
Update of /cvs/fedora/extras-buildsys/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22759/common
Modified Files:
HTTPServer.py
Log Message:
Ignore socket timeout errors in the HTTPServer module
Index: HTTPServer.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/common/HTTPServer.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- HTTPServer.py 25 Aug 2005 18:15:13 -0000 1.6
+++ HTTPServer.py 18 Nov 2005 14:43:09 -0000 1.7
@@ -24,6 +24,7 @@
import sys
import SSLCommon
import time
+import socket
from OpenSSL import SSL
@@ -36,7 +37,10 @@
def __init__(self, request, client_address, server):
self._server = server
- SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, request, client_address, server)
+ try:
+ SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, request, client_address, server)
+ except socket.timeout:
+ pass
def list_directory(self, path):
self.send_error(404, "No permission to list directory")
@@ -76,6 +80,8 @@
self.handle_one_request()
except SSL.Error, e:
print e[0]
+ except socket.timeout:
+ pass
class PlgHTTPSServer(SSLCommon.PlgBaseSSLServer):
More information about the fedora-extras-commits
mailing list