fix issue #1112: set SSL object's read_ahead flag to be 0

master
daixj 7 years ago
parent a1576ccbf7
commit 88b3c06311

@ -734,7 +734,7 @@ ssl_tls_accept(struct ssl_tls *self, long ssl_protocols,
} }
} }
SSL_CTX_set_read_ahead(self->ctx, 1); SSL_CTX_set_read_ahead(self->ctx, 0);
if (SSL_CTX_use_RSAPrivateKey_file(self->ctx, self->key, SSL_FILETYPE_PEM) if (SSL_CTX_use_RSAPrivateKey_file(self->ctx, self->key, SSL_FILETYPE_PEM)
<= 0) <= 0)

Loading…
Cancel
Save