commit | 6af3e2dc315797e799a6ad0baedd393ff65ef1db | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Apr 20 07:47:40 2002 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Apr 20 07:47:40 2002 +0000 |
tree | 41bbaf629312ba815f1a827e5470842db08370c3 | |
parent | 954aed8c8d93145347d10fd3ac6c2bc6634ef674 [diff] [blame] |
Forward port of patch # 500311: Work around for buggy https servers. Fixes #494762.
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 @@ 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: