mirror of
https://github.com/python/cpython.git
synced 2025-08-26 19:55:24 +00:00
Forward port of patch # 500311: Work around for buggy https servers.
Fixes #494762.
This commit is contained in:
parent
954aed8c8d
commit
6af3e2dc31
3 changed files with 92 additions and 42 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue