diff roundup/cgi/client.py @ 4640:70b1cb9034c3

Ignore IOError and SysCallError also in outer try/except.
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 10 Jul 2012 14:01:40 +0200
parents 1ebc5f16aeda
children e645820e8556
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Jul 10 12:02:16 2012 +0200
+++ b/roundup/cgi/client.py	Tue Jul 10 14:01:40 2012 +0200
@@ -539,6 +539,15 @@
         except FormError, e:
             self.error_message.append(self._('Form Error: ') + str(e))
             self.write_html(self.renderContext())
+        except IOError:
+            # IOErrors here are due to the client disconnecting before
+            # receiving the reply.
+            # may happen during write_html and serve_file, too.
+            pass
+        except SysCallError:
+            # OpenSSL.SSL.SysCallError is similar to IOError above
+            # may happen during write_html and serve_file, too.
+            pass
         except:
             # Something has gone badly wrong.  Therefore, we should
             # make sure that the response code indicates failure.

Roundup Issue Tracker: http://roundup-tracker.org/