summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-04-20 07:47:40 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-04-20 07:47:40 (GMT)
commit6af3e2dc315797e799a6ad0baedd393ff65ef1db (patch)
tree41bbaf629312ba815f1a827e5470842db08370c3 /Lib/httplib.py
parent954aed8c8d93145347d10fd3ac6c2bc6634ef674 (diff)
downloadcpython-6af3e2dc315797e799a6ad0baedd393ff65ef1db.zip
cpython-6af3e2dc315797e799a6ad0baedd393ff65ef1db.tar.gz
cpython-6af3e2dc315797e799a6ad0baedd393ff65ef1db.tar.bz2
Forward port of patch # 500311: Work around for buggy https servers.
Fixes #494762.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 2faf318..9d01859 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -633,7 +633,8 @@ class FakeSocket:
if (err[0] == socket.SSL_ERROR_WANT_READ
or err[0] == socket.SSL_ERROR_WANT_WRITE):
continue
- if err[0] == socket.SSL_ERROR_ZERO_RETURN:
+ if (err[0] == socket.SSL_ERROR_ZERO_RETURN
+ or err[0] == socket.SSL_ERROR_EOF):
break
raise
except socket.error, err: