Skip to content

Commit

Permalink
openssl: do not set SSL_MODE_RELEASE_BUFFERS
Browse files Browse the repository at this point in the history
While it might save some memory, it causes OpenSSL to instead do a huge
amount of allocations.

Ref: curl#13136
Closes curl#13203
  • Loading branch information
bagder committed Mar 28, 2024
1 parent 2efc111 commit c247827
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/vtls/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3565,10 +3565,6 @@ static CURLcode ossl_connect_step1(struct Curl_cfilter *cf,
return CURLE_OUT_OF_MEMORY;
}

#ifdef SSL_MODE_RELEASE_BUFFERS
SSL_CTX_set_mode(backend->ctx, SSL_MODE_RELEASE_BUFFERS);
#endif

#ifdef SSL_CTRL_SET_MSG_CALLBACK
if(data->set.fdebug && data->set.verbose) {
/* the SSL trace callback is only used for verbose logging */
Expand Down

0 comments on commit c247827

Please sign in to comment.