rtsp-runtime 0.8.0

Sans-IO RTSP 1.0 (RFC 2326) session engine — driveable client + server state machines, interleaved RTP/RTCP framing, Basic/Digest/Bearer auth (via broadcast-auth), over the rtsp-types codec; optional tokio (+ rustls) socket adapter.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Size caps shared by the sans-IO cores and the `tokio` codecs.

/// Longest header block (start line + headers, up to and including the blank
/// line) accepted, enforced by `framing::head_end` on the bytes buffered before
/// the terminator. A longer head, terminated or not, is rejected.
pub(crate) const MAX_HEAD_BYTES: usize = 64 * 1024;

/// Largest complete message (headers + body) the server codec will wait for.
/// 2 MiB covers a large `ANNOUNCE` SDP body with headroom.
#[cfg(feature = "tokio")]
pub(crate) const MAX_MESSAGE_BYTES: usize = 2 * 1024 * 1024;