diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-04-20 07:47:40 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-04-20 07:47:40 (GMT) |
commit | 6af3e2dc315797e799a6ad0baedd393ff65ef1db (patch) | |
tree | 41bbaf629312ba815f1a827e5470842db08370c3 /Lib | |
parent | 954aed8c8d93145347d10fd3ac6c2bc6634ef674 (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/httplib.py | 3 |
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: |