Skip to content

Commit 3f69c89

Browse files
committed
Ignore OpenSSL.SSL.SysCallError similar to IOError.
1 parent 465939b commit 3f69c89

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

roundup/cgi/client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import socket, errno
88
from traceback import format_exc
99

10+
try:
11+
from OpenSSL.SSL import SysCallError
12+
except ImportError:
13+
SysCallError = None
14+
1015
from roundup import roundupdb, date, hyperdb, password
1116
from roundup.cgi import templating, cgitb, TranslationService
1217
from roundup.cgi.actions import *
@@ -483,7 +488,10 @@ def inner_main(self):
483488
self.serve_static_file(str(file))
484489
except IOError:
485490
# IOErrors here are due to the client disconnecting before
486-
# recieving the reply.
491+
# receiving the reply.
492+
pass
493+
except SysCallError:
494+
# OpenSSL.SSL.SysCallError is similar to IOError above
487495
pass
488496

489497
except SeriousError, message:

0 commit comments

Comments
 (0)