diff options
Diffstat (limited to 'flup/server/fcgi_base.py')
-rw-r--r-- | flup/server/fcgi_base.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/flup/server/fcgi_base.py b/flup/server/fcgi_base.py index 15f59c9..42ab282 100644 --- a/flup/server/fcgi_base.py +++ b/flup/server/fcgi_base.py @@ -567,8 +567,12 @@ class Request(object): if __debug__: _debug(1, 'protocolStatus = %d, appStatus = %d' % (protocolStatus, appStatus)) - self._flush() - self._end(appStatus, protocolStatus) + try: + self._flush() + self._end(appStatus, protocolStatus) + except socket.error, e: + if e[0] != errno.EPIPE: + raise def _end(self, appStatus=0L, protocolStatus=FCGI_REQUEST_COMPLETE): self._conn.end_request(self, appStatus, protocolStatus) |