Forward port of patch # 500311: Work around for buggy https servers.

Fixes #494762.
This commit is contained in:
Martin v. Löwis 2002-04-20 07:47:40 +00:00
parent 954aed8c8d
commit 6af3e2dc31
3 changed files with 92 additions and 42 deletions

View file

@ -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: