aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
Diffstat (limited to 'netlib')
-rw-r--r--netlib/tcp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 078ac497..c5f97f94 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -143,7 +143,9 @@ class Reader(_FileLike):
raise NetLibTimeout
except socket.error:
raise NetLibDisconnect
- except SSL.SysCallError:
+ except SSL.SysCallError as e:
+ if e.args == (-1, 'Unexpected EOF'):
+ break
raise NetLibDisconnect
except SSL.Error, v:
raise NetLibSSLError(v.message)