CherryPy now gets patched during Live CD build. Fixes defect #216.
This commit is contained in:
parent
c5643b0434
commit
b9d56c4682
3 changed files with 48 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
--- chroot/usr/share/python-support/python-cherrypy/cherrypy/_cpwsgiserver.py 2006-04-24 18:37:45.000000000 -0700
|
||||
+++ chroot/usr/share/cryptonas-live/_cpwsgiserver-copy.py 2008-11-27 22:53:49.000000000 -0700
|
||||
@@ -200,10 +200,17 @@
|
||||
response = request.wsgi_app(request.environ,
|
||||
request.start_response)
|
||||
for line in response:
|
||||
request.write(line)
|
||||
except socket.error, e:
|
||||
+ msg = e.args[1]
|
||||
+ if msg == "Bad file descriptor":
|
||||
+ # Our socket was closed
|
||||
+ return
|
||||
+ if msg == "Resource temporarily unavailable":
|
||||
+ # Just try again. See http://www.cherrypy.org/ticket/479.
|
||||
+ return
|
||||
errno = e.args[0]
|
||||
if errno not in socket_errors_to_ignore:
|
||||
traceback.print_exc()
|
||||
except (KeyboardInterrupt, SystemExit), exc:
|
||||
self.server.interrupt = exc
|
Loading…
Add table
Add a link
Reference in a new issue