diff options
| author | cce <devnull@localhost> | 2005-12-19 21:22:33 +0000 |
|---|---|---|
| committer | cce <devnull@localhost> | 2005-12-19 21:22:33 +0000 |
| commit | fab647db8901f9cab089c1204a95f3d0dba9ae79 (patch) | |
| tree | ef6064e251cd296227b2b5d3a741fbb4eeebf4a2 /paste/util/httpserver.py | |
| parent | b59aae4d1d293c3f7fc37ec886656885be341456 (diff) | |
| download | paste-fab647db8901f9cab089c1204a95f3d0dba9ae79.tar.gz | |
- simply punt socket errors; don't even log them
Diffstat (limited to 'paste/util/httpserver.py')
| -rwxr-xr-x | paste/util/httpserver.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/paste/util/httpserver.py b/paste/util/httpserver.py index 06b4901..22e0b37 100755 --- a/paste/util/httpserver.py +++ b/paste/util/httpserver.py @@ -148,10 +148,12 @@ class WSGIHandlerMixin: finally: if hasattr(result,'close'): result.close() - except socket.error, exce: - # do not stop the server on a network error; is this needed? - self.log_error("Network Error: %s", exce) - return + except socket.error: + # @@: what do we do with this exception? Sending a 500 + # isn't smart in this case, which is why it is being singled + # out here. Yet, SocketServer@218 just ignores this sort of + # error... is this acceptable? Let's just punt. + raise except: if not self.wsgi_headers_sent: self.wsgi_curr_headers = ('500 Internal Server Error', |
