aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 8771e789..ac4fab95 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -66,6 +66,8 @@ class FileLike:
raise NetLibTimeout
except socket.timeout:
raise NetLibTimeout
+ except socket.error:
+ raise NetLibDisconnect
if not data:
break
result += data