Changeset 1766
- Timestamp:
- 10/26/07 02:04:33
- Files:
-
- trunk/cherrypy/wsgiserver/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/wsgiserver/__init__.py
r1734 r1766 536 536 return "" 537 537 538 errn o= e.args[0]539 if is_reader and errn oin socket_errors_to_ignore:538 errnum = e.args[0] 539 if is_reader and errnum in socket_errors_to_ignore: 540 540 return "" 541 raise socket.error(errn o)541 raise socket.error(errnum) 542 542 except SSL.Error, e: 543 543 if is_reader and e.args == (-1, 'Unexpected EOF'): … … 633 633 return 634 634 except socket.error, e: 635 errn o= e.args[0]636 if errn onot in socket_errors_to_ignore:635 errnum = e.args[0] 636 if errnum not in socket_errors_to_ignore: 637 637 if req: 638 638 req.simple_response("500 Internal Server Error", … … 1061 1061 return 1062 1062 except socket.error, x: 1063 if hasattr(errno, "EINTR") and x.args[0] == errno.EINTR: 1064 # I *think* this is right. EINTR should occur when a signal 1065 # is received during the accept() call; all docs say retry 1066 # the call, and I *think* I'm reading it right that Python 1067 # will then go ahead and poll for and handle the signal 1068 # elsewhere. See http://www.cherrypy.org/ticket/707. 1069 return 1063 1070 msg = x.args[1] 1064 1071 if msg in ("Bad file descriptor", "Socket operation on non-socket"):

