mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Improve system call support
This commit is contained in:
parent
63b867bd2f
commit
3085ac7837
65 changed files with 900 additions and 544 deletions
2
third_party/python/Modules/_ssl.c
vendored
2
third_party/python/Modules/_ssl.c
vendored
|
@ -811,7 +811,7 @@ _ssl__SSLSocket_do_handshake_impl(PySSLSocket *self)
|
|||
if (has_timeout)
|
||||
timeout = deadline - _PyTime_GetMonotonicClock();
|
||||
|
||||
if (err.ssl == SSL_ERROR_WANT_READ) {
|
||||
if (err.ssl == SSL_ERROR_WANT_READ) {
|
||||
sockstate = PySSL_select(sock, 0, timeout);
|
||||
} else if (err.ssl == SSL_ERROR_WANT_WRITE) {
|
||||
sockstate = PySSL_select(sock, 1, timeout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue