Skip to content

rust-0.34.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 10:47
· 6 commits to v3 since this release
  • Worker: Complete Dependency Descriptor implementation (PR #2015).
  • Worker: Don’t take a template dependency structure older than the one in use (PR #2047).
  • New RTCP stack (task #2049).
  • Worker: Rewrite the Dependency Descriptor frame numbers across stream switches (PR #2048).
  • Modernize C++ code (PR #2060, PR #2063, PR #2064, PR #2078, PR #2080, PR #2082, PR #2083, PR #2084, PR #2088):
  • Use unique_ptr instead of holding raw pointers.
    • WebRtcTransport and WebRtcServer: Use announcedAddress (it was missing).
    • Fix crash in Producer.cpp: An RTP packet with SSRC 0 matched encodings without ssrc (0 means "no SSRC") and hit an MS_ASSERT in CreateRtpStream().
    • Fix crash in PlainTransport with comedia and SRTP: An SCTP packet received before connect() set the tuple and the next sent RTP packet dereferenced a null SRTP send session.
    • Fix crash (use-after-free) in Transport when the remote SCTP peer resets the same stream id twice in a single request (the same DataConsumer was closed twice).
    • Fix crash in Producer when an encoding has both ssrc and rid and a packet with that rid but another SSRC arrives before one with the encoding ssrc.
    • Fix RTC::RtpParameters::Parameters: RTP parameters with an array of integers value were stored as a boolean true.
    • Fix RTC::Parameters: Boolean parameters were missing in dumps.
    • Fix Producer: RTX packets were discarded forever if the stream of their encoding was created via RID with a SSRC other than the encoding one, or could be bound to the wrong stream if several encodings had no SSRC.
    • Fix PlainTransport: A failed connect() with SRTP left the SRTP crypto suite and local key changed.
    • Fix PlainTransport: With comedia, connect() notified the transport as connected before having a tuple, and again once the first packet set it.
    • Validate that rtcMinPort and any port range never start at port 0.
    • Fix ICE::StunPacket::CheckAuthentication(): The username fragment was compared as a null terminated C string instead of by its length.
    • Fix ICE::StunPacket::IsStun(): Packets whose first byte is 3 were not considered STUN (RFC 7983).
    • Fix ICE::IceServer: In 'completed' state, a Binding request with USE-CANDIDATE and a nomination not higher than the current one changed the selected tuple (ICE renomination).
    • Fix ICE::IceServer: A Binding request with ICE-CONTROLLED and a tie-breaker of 0 was not rejected with a 487 (role conflict).
    • SCTP: Fix receiver window wrapping around after sending with a zero receiver window.
    • SCTP: Fix SACK acking unreceived TSNs more than 65535 ahead of the cumulative TSN ack.
    • SCTP: Fix inverted handling of unknown chunk types, which stopped processing the packet when it had to skip the chunk and continue, and vice versa.
    • SCTP: Fix complete received messages not being delivered when they follow a message larger than maxReceiveMessageSize.
    • SCTP: Fix worker crash when a COOKIE-ECHO matching the association arrives while it is shutting down.
    • SCTP: Fix worker crash when a restarted peer sends a COOKIE-ECHO in SHUTDOWN_SENT state.
    • SCTP: Fix worker crash and association being re-established when a COOKIE-ECHO of a restarted peer or of simultaneous associations arrives while it is shutting down.
    • SCTP: Fix closed association being reopened by a received COOKIE-ECHO.
    • SCTP: Fix chunks bundled after an invalid or mismatching COOKIE-ECHO being processed without verification tag validation.
    • SCTP: Fix association being closed by an INIT with zero outbound or inbound streams, which must only be discarded and answered with an ABORT as per RFC 9260.
    • SCTP: Fix association closure being notified again when already closed.
    • SCTP: Fix expired chunks being retransmitted instead of abandoned.
    • SCTP: Fix "connecting" SCTP state being notified twice when the association is opened by mediasoup.
    • SCTP: Fix OUTGOING-SSN-RESET-REQUEST and INCOMING-SSN-RESET-REQUEST parameters with odd length being accepted.
    • SCTP: Performance: Run expensive internal consistency checks only in test builds, since they walk every outstanding chunk, stream and queued message on each send and SACK.
    • Fix Consumer: When the first packet after a re-sync (transport reconnection or resume) was dropped by the codec, or by the old-packet filter in SimulcastProducerStreamManager, the RTP sequence number sync was lost, so the next forwarded packet produced a gap in the outgoing sequence numbers. Regression introduced in PR #1731.
    • Fix RateCalculator: When the item holding the sample that starts the measured period expired before the period reached the window size, its count was subtracted again from a total that no longer included it, so the subtraction wrapped around and no rate was reported. Test included.
    • Fix Consumer: Packets of a key frame buffered while waiting for its first packet were lost if their sequence numbers wrapped around after it. Test included.
    • Fix DtlsTransport: Sending SCTP data reported success when SSL_write() failed.
    • Fix DtlsTransport and WebRtcTransport: Handle a remote peer that breaks the DTLS session when the handshake completes:
      • A fatal or malformed DTLS alert sent in the same datagram as the last handshake message crashed the worker (failed assertion) if SCTP was enabled.
      • Without SCTP, the transport reported DTLS as connected on a session that had already failed.
    • Fix AudioLevelObserver: The sum of audio levels overflowed with many packets per interval (e.g. 5 ms Opus), reporting wrong volumes, and the average was truncated instead of rounded.
    • Fix Producer: No key frame was requested for a new RTP stream whose first packet was discarded, so a Consumer could stay without video until the sender sent a key frame on its own.
  • Worker: SeqManager fixes (PR #2068):
    • maxForwarded was not updated when the forwarded input was lower than a dropped one, so a later drop lower than it was accounted and the next outputs repeated or went back, credits to @mstyura.
    • Sync() did not reset maxForwarded, so a drop lower than the sync point was accounted (repeating an already emitted output) while an out of order drop above it was not (leaving an unnecessary gap).
  • Consumer: Drop RTP packet if SeqManager.Input() returns false (PR #2068).
  • BWE: Fix Transport-CC feedback reporting missing RTP packets twice (PR #2073).
  • Worker: Codec fixes (PR #2062).
    • DD: Fix undefined behaviour on network input in the Dependency Descriptor.
    • VP8, VP9: Fix 7 bits pictureIds being taken for 15 bits ones.
    • AV1: Parse aggregation header to detect a keyframe.
    • DD: Validate the template dependency structure limits.
    • Codecs: FrameIdList, consider frameId wraps.
    • RTP: Drop the packet if its payload cannot be shifted.
  • Update OpenSSL meson wrap to 3.5.9-2 (PR #2077).
  • Worker: Enable Dependency Descriptor for VP8 (PR #2079).
  • Worker: Enable simulcast for VP9 and AV1 (PR #2081).
  • Worker: Handle received RTCP BYE (PR #2090).