mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #8240: Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets.
This commit is contained in:
parent
3b84eae03e
commit
3a65ad7f08
2 changed files with 6 additions and 1 deletions
|
|
@ -490,9 +490,11 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
|
|||
PySSL_END_ALLOW_THREADS
|
||||
SSL_set_app_data(self->ssl,self);
|
||||
SSL_set_fd(self->ssl, sock->sock_fd);
|
||||
SSL_set_mode(self->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
|
||||
#ifdef SSL_MODE_AUTO_RETRY
|
||||
SSL_set_mode(self->ssl, SSL_MODE_AUTO_RETRY);
|
||||
| SSL_MODE_AUTO_RETRY
|
||||
#endif
|
||||
);
|
||||
|
||||
#if HAVE_SNI
|
||||
if (server_hostname != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue