Skip to content

Commit

Permalink
Add limit for DTLS transport incoming queue
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Oct 22, 2024
1 parent 304e16c commit 0a18692
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 0a18692

Please sign in to comment.