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

This commit is contained in:
daixj 2018-05-21 11:08:41 +08:00
parent a1576ccbf7
commit 88b3c06311

View File

@ -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)
<= 0)