Skip to content

Commit

Permalink
DtlsTransport: remove SSL_CTX_set_read_ahead() call which is noop in …
Browse files Browse the repository at this point in the history
…DTLS
  • Loading branch information
ibc committed Sep 6, 2024
1 parent ff1ccef commit 06b813d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions worker/src/RTC/DtlsTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,6 @@ namespace RTC
// Don't use sessions cache.
SSL_CTX_set_session_cache_mode(DtlsTransport::sslCtx, SSL_SESS_CACHE_OFF);

// Read always as much into the buffer as possible.
// NOTE: This is the default for DTLS, but a bug in non latest OpenSSL
// versions makes this call required.
SSL_CTX_set_read_ahead(DtlsTransport::sslCtx, 1);

SSL_CTX_set_verify_depth(DtlsTransport::sslCtx, 4);

// Require certificate from peer.
Expand Down

0 comments on commit 06b813d

Please sign in to comment.