Skip to content

Commit

Permalink
Merge pull request #1275 from paullouisageneau/dtlstransport-queue-limit
Browse files Browse the repository at this point in the history
Add limit for DTLS transport incoming queue
  • Loading branch information
paullouisageneau authored Oct 22, 2024
2 parents 304e16c + 0a18692 commit f786f5d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/impl/dtlstransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ DtlsTransport::DtlsTransport(shared_ptr<IceTransport> lower, certificate_ptr cer
verifier_callback verifierCallback, state_callback stateChangeCallback)
: Transport(lower, std::move(stateChangeCallback)), mMtu(mtu), mCertificate(certificate),
mFingerprintAlgorithm(fingerprintAlgorithm), mVerifierCallback(std::move(verifierCallback)),
mIsClient(lower->role() == Description::Role::Active) {
mIsClient(lower->role() == Description::Role::Active),
mIncomingQueue(RECV_QUEUE_LIMIT, message_size_func) {

PLOG_DEBUG << "Initializing DTLS transport (GnuTLS)";

Expand Down Expand Up @@ -380,7 +381,8 @@ DtlsTransport::DtlsTransport(shared_ptr<IceTransport> lower, certificate_ptr cer
verifier_callback verifierCallback, state_callback stateChangeCallback)
: Transport(lower, std::move(stateChangeCallback)), mMtu(mtu), mCertificate(certificate),
mFingerprintAlgorithm(fingerprintAlgorithm), mVerifierCallback(std::move(verifierCallback)),
mIsClient(lower->role() == Description::Role::Active) {
mIsClient(lower->role() == Description::Role::Active),
mIncomingQueue(RECV_QUEUE_LIMIT, message_size_func) {

PLOG_DEBUG << "Initializing DTLS transport (MbedTLS)";

Expand Down Expand Up @@ -729,7 +731,9 @@ DtlsTransport::DtlsTransport(shared_ptr<IceTransport> lower, certificate_ptr cer
verifier_callback verifierCallback, state_callback stateChangeCallback)
: Transport(lower, std::move(stateChangeCallback)), mMtu(mtu), mCertificate(certificate),
mFingerprintAlgorithm(fingerprintAlgorithm), mVerifierCallback(std::move(verifierCallback)),
mIsClient(lower->role() == Description::Role::Active) {
mIsClient(lower->role() == Description::Role::Active),
mIncomingQueue(RECV_QUEUE_LIMIT, message_size_func) {

PLOG_DEBUG << "Initializing DTLS transport (OpenSSL)";

if (!mCertificate)
Expand Down

0 comments on commit f786f5d

Please sign in to comment.