diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 17:47:22 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 17:47:22 (GMT) |
commit | 6459c8d067890a64fc526204ab7004f9c8fcfe98 (patch) | |
tree | bf5a147a8e36488bde476454096d9d05d11f403d /Grammar | |
parent | e2adc6c205db6087b3a8f00a245cfb06905b8ae5 (diff) | |
download | cpython-6459c8d067890a64fc526204ab7004f9c8fcfe98.zip cpython-6459c8d067890a64fc526204ab7004f9c8fcfe98.tar.gz cpython-6459c8d067890a64fc526204ab7004f9c8fcfe98.tar.bz2 |
Fix for SF buf #458835
Try to be systematic about dealing with socket and ssl exceptions in
FakeSocket.makefile(). The previous version of the code caught all
ssl errors and treated them as EOF, even though most of the errors
don't mean EOF.
An SSL error can mean on of three things:
1. The SSL/TLS connection was closed.
2. The operation should be retried.
3. An error occurred.
Also, if a socket error occurred and the error was EINTR, retry the
call. Otherwise, it was a legitimate error and the caller should
receive the exception.
Diffstat (limited to 'Grammar')
0 files changed, 0 insertions, 0 deletions