diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-25 11:02:32 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-25 11:02:32 (GMT) |
commit | 3a65ad7f0858f13b1f2599f029cb42f11c496132 (patch) | |
tree | 832303c282ae938e62122167ca77917cb3347aee /Modules | |
parent | 3b84eae03ebd8122fdbdced3d85999dd9aedfc7e (diff) | |
download | cpython-3a65ad7f0858f13b1f2599f029cb42f11c496132.zip cpython-3a65ad7f0858f13b1f2599f029cb42f11c496132.tar.gz cpython-3a65ad7f0858f13b1f2599f029cb42f11c496132.tar.bz2 |
Issue #8240: Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index c6493ba..ca41bbf 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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) |