1. Armin Rigo
  2. cpython-withatomic


Antoine Pitrou  committed a1628bd

SSL_MODE_AUTO_RETRY has been added in OpenSSL 0.9.6. Fix compilation
with earlier versions.

  • Participants
  • Parent commits 24ce4a0
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/_ssl.c

View file
  • Ignore whitespace
 	self->ssl = SSL_new(self->ctx); /* New ssl struct */
 	SSL_set_fd(self->ssl, Sock->sock_fd);	/* Set the socket for SSL */
 	SSL_set_mode(self->ssl, SSL_MODE_AUTO_RETRY);
 	/* If the socket is in non-blocking mode or timeout mode, set the BIO
 	 * to non-blocking mode (blocking is the default)