Don't log common connection problems by default.
This commit is contained in:
parent
efde079417
commit
ca80852bc2
11
test/test.py
11
test/test.py
@ -154,12 +154,15 @@ class TestHandlerBase(BaseHTTPRequestHandler):
|
|||||||
except socket.error, v:
|
except socket.error, v:
|
||||||
if v[0] == errno.ECONNRESET:
|
if v[0] == errno.ECONNRESET:
|
||||||
# Ignoring connection reset by peer exceptions
|
# Ignoring connection reset by peer exceptions
|
||||||
print 'Detected connection reset'
|
if VERBOSE:
|
||||||
|
print 'Detected connection reset'
|
||||||
elif v[0] == errno.EPIPE:
|
elif v[0] == errno.EPIPE:
|
||||||
print 'Detected remote peer disconnected'
|
if VERBOSE:
|
||||||
|
print 'Detected remote peer disconnected'
|
||||||
elif v[0] == 10053:
|
elif v[0] == 10053:
|
||||||
print 'An established connection was aborted by the' \
|
if VERBOSE:
|
||||||
' software in your host machine'
|
print 'An established connection was aborted by the' \
|
||||||
|
' software in your host machine'
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user