Commits

Robert Brewer  committed 18e7689

Re-fix and backport of #860 (Robustness issue in exception catching).

  • Participants
  • Parent commits 1c3424e
  • Branches cherrypy-3.1.x

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/__init__.py

                 try:
                     host, port = sock.getsockname()[:2]
                 except socket.error, x:
-                    if x.args[1] != "Bad file descriptor":
+                    if x.args[0] not in socket_errors_to_ignore:
                         raise
                 else:
                     # Note that we're explicitly NOT using AI_PASSIVE,