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