Repository navigation
librtmp2 0.16.1
Fixed
- A publisher that keeps sending media is no longer closed for not answering
RTMP pings. Some hardware encoders (seen with a DJI Osmo Pocket 3) never
send a ping response, so the server dropped them after about 15 seconds.
The close reason for a real ping timeout now says so, instead of reporting
a failed send. - A peer that keeps sending but stops reading what the server sends is
closed once no byte of its queued output has reached the socket for
10 seconds. - The client delivers media it already received when the peer closes or
resets the connection, instead of dropping it with the error. - A compressed (fmt 2/3) chunk header after a zero-length message is
accepted. releaseStreamalso releases a publish route pinned to a different key
(librtmp2-server pins the database stream id). A playing connection
cannot release it.- Reconnect requests accept the same
tcUrland description lengths the
writer produces; an emptytcUrlmeans reconnect to the current URL. - A legacy AAC sequence header must carry a valid AudioSpecificConfig
before it replaces the cached one. - The AVC packet type is read from video tags shorter than five bytes.
- Enhanced audio frames no longer report the legacy sample rate, channel
and bit-depth bits, which are part of the packet type there. - Enhanced RTMP video commands and multichannel audio configs, including
inside multitrack containers, are never dropped under congestion. - Benchmark tooling: an empty benchmark report fails instead of replacing
the published one, the relay benchmarks check that frames arrived and
reject invalid arguments, and the ABI baseline script restores the
checkout when the baseline build fails.
Changed
- Dependency update: openssl 0.10.82 (openssl-sys 0.9.118).
Benchmarks
Measured automatically for this release on a CI runner; the machine is described below. Raw data: bench-results-v0.16.1.json.
- Measured: 2026-11-01 22:30:43 UTC ·
b23cdf2· crate version 0.16.1 · workflow run - CPU: AMD EPYC 9V74 80-Core Processor · 4 vCPUs
- RAM: 15.6 GiB
- System: Linux 7.0.0-1017-azure x86_64 · rustc 1.99.1 · GitHub-hosted ubuntu26 (image 20261026.180.1)
- Noise: shared CI VM — CPU model, neighbouring load and the runner image change between runs, so treat absolute numbers as indicative.
- Comparable vs release v0.16.0: ❌ different hardware (INTEL(R) XEON(R) PLATINUM 8573C, 4 vCPUs vs AMD EPYC 9V74 80-Core Processor, 4 vCPUs): only large changes (> 25 %) mean anything
protocol
| Benchmark | Time | Throughput | vs release v0.16.0 |
|---|---|---|---|
amf0_build_connect |
157 ns | — | 🟢 −32.2 % |
chunk/write_read_roundtrip |
4.39 µs | ~890 MiB/s | ⚪ +2.4 % |
flv/audio_tag_aac |
1.09 ns | — | ⚪ +5.3 % |
flv/video_tag_h264 |
1.10 ns | — | ⚪ +7.8 % |
fourcc_to_video_codec_avc1 |
1.92 ns | — | ⚪ +16.0 % |
server_read_c1 |
797 ns | — | ⚪ −14.3 % |
relay
| Benchmark | Time | Throughput | vs release v0.16.0 |
|---|---|---|---|
relay/publish_to_player/100 |
51.2 ms | ~1953 elem/s | 🟢 −47.3 % |
relay/publish_to_player/500 |
52.9 ms | ~9447 elem/s | 🟢 −46.3 % |
🟢 faster · 🔴 slower · ⚪ within the noise band (5–25 % depending on how comparable the two environments are, plus both runs' Criterion confidence intervals). Lower time is better.