From fab647db8901f9cab089c1204a95f3d0dba9ae79 Mon Sep 17 00:00:00 2001 From: cce Date: Mon, 19 Dec 2005 21:22:33 +0000 Subject: - simply punt socket errors; don't even log them --- paste/util/httpserver.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'paste/util/httpserver.py') 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', -- cgit v1.2.1