Merge pull request #3293 from brendandahl/less-log

Don't log common connection problems by default.
This commit is contained in:
Yury Delendik 2013-05-30 16:28:42 -07:00
commit 26b1636a9b

View File

@ -154,12 +154,15 @@ class TestHandlerBase(BaseHTTPRequestHandler):
except socket.error, v:
if v[0] == errno.ECONNRESET:
# Ignoring connection reset by peer exceptions
print 'Detected connection reset'
if VERBOSE:
print 'Detected connection reset'
elif v[0] == errno.EPIPE:
print 'Detected remote peer disconnected'
if VERBOSE:
print 'Detected remote peer disconnected'
elif v[0] == 10053:
print 'An established connection was aborted by the' \
' software in your host machine'
if VERBOSE:
print 'An established connection was aborted by the' \
' software in your host machine'
else:
raise