Commit Graph

4047 Commits

Author SHA1 Message Date
Philipp Krüger b75279fe4b refactor(quinn-proto): Use ArrayRangeSet in favor of RangeSet
This seems to improve performance by ~8-10% in local benchmarks for us.
2025-11-13 09:05:36 +01:00
dependabot[bot] 7fc33f4143 build(deps): bump hex-literal from 1.0.0 to 1.1.0
Bumps [hex-literal](https://github.com/RustCrypto/utils) from 1.0.0 to 1.1.0.
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v1.0.0...hex-literal-v1.1.0)

---
updated-dependencies:
- dependency-name: hex-literal
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 09:17:23 +00:00
dependabot[bot] 425b8b45f6 build(deps): bump console-subscriber from 0.4.1 to 0.5.0
Bumps [console-subscriber](https://github.com/tokio-rs/console) from 0.4.1 to 0.5.0.
- [Release notes](https://github.com/tokio-rs/console/releases)
- [Changelog](https://github.com/tokio-rs/console/blob/main/release-plz.toml)
- [Commits](https://github.com/tokio-rs/console/compare/console-subscriber-v0.4.1...console-subscriber-v0.5.0)

---
updated-dependencies:
- dependency-name: console-subscriber
  dependency-version: 0.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 09:16:51 +00:00
Philipp Krüger b699e5c815 Avoid underflow panic in packet loss Instant calculations 2025-11-11 07:27:00 +00:00
Philipp Krüger 4f7f3e7d82 Remove instant_saturating_sub fn in favor of Instant::saturating_duration_since 2025-11-11 07:27:00 +00:00
Philipp Krüger 8c0f2a21e9 Refactor QlogSink::emit_packet_lost to take loss_delay instead of lost_send_time 2025-11-11 07:27:00 +00:00
Dirkjan Ochtman 84d392c23a Apply suggestions from clippy 1.91 2025-11-03 12:04:22 +01:00
Dirkjan Ochtman eee334dff6 ci: drop netbsd testing 2025-10-30 05:36:24 +00:00
Dirkjan Ochtman 994ab35b9f ci: pin wasm-bindgen-cli to match lockfile 2025-10-30 05:36:24 +00:00
Dirkjan Ochtman 8141831760 Take semver-compatible updates 2025-10-30 05:36:24 +00:00
dependabot[bot] 491b8b5deb build(deps): bump rustls-platform-verifier from 0.6.1 to 0.6.2
Bumps [rustls-platform-verifier](https://github.com/rustls/rustls-platform-verifier) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/rustls/rustls-platform-verifier/releases)
- [Changelog](https://github.com/rustls/rustls-platform-verifier/blob/main/CHANGELOG)
- [Commits](https://github.com/rustls/rustls-platform-verifier/compare/v/0.6.1...v/0.6.2)

---
updated-dependencies:
- dependency-name: rustls-platform-verifier
  dependency-version: 0.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 14:09:05 +00:00
ice-user 0a6635d6b7 fix(pacing): allow ±0ns tolerance in computes_pause_correctly test on i386
-Used Duration::abs_diff() instead of manual difference for cleaner and more robust duration comparison.
-added inline formatting as required.
2025-10-27 12:08:05 +00:00
dependabot[bot] fc5e219fd9 build(deps): bump actions/setup-node from 4 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 14:04:18 +00:00
dependabot[bot] 1e44c69f86 build(deps): bump getrandom from 0.3.3 to 0.3.4
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.3.3...v0.3.4)

---
updated-dependencies:
- dependency-name: getrandom
  dependency-version: 0.3.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 13:53:59 +00:00
David Emett e05a8e5a7e Relax MTU discovery state assertion
While we will never start probing before the connection has been
established, it is possible for black hole detection to trigger, which
will put MTU discovery into the Complete state.
2025-10-11 18:09:14 +00:00
David Emett a43918cfed Fix some comparisons in the black hole detector
Lost packets with size exactly matching the minimum MTU should not be
treated as suspicious; by definition the MTU will never be reduced below
this.

Similarly, lost packets with size exactly matching a more recent
successfully transmitted packet should not be treated as suspicious.
2025-10-11 18:09:14 +00:00
Pablo Sichert 719cc78866 Use saturating_mul when calculating congestion_period to not panic on overflow 2025-10-11 14:41:24 +00:00
Fabien Savy 531ca90ec9 spurious loss detection and recovery 2025-10-07 21:59:04 +00:00
Fabien Savy 6ce93786e2 regroup cubic state values 2025-10-07 21:59:04 +00:00
dependabot[bot] e340daa36e build(deps): bump serde from 1.0.226 to 1.0.228
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.226 to 1.0.228.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.226...v1.0.228)

---
updated-dependencies:
- dependency-name: serde
  dependency-version: 1.0.228
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 05:10:12 +00:00
dependabot[bot] 3dfd4c560d build(deps): bump windows-sys from 0.61.0 to 0.61.1
Bumps [windows-sys](https://github.com/microsoft/windows-rs) from 0.61.0 to 0.61.1.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/commits)

---
updated-dependencies:
- dependency-name: windows-sys
  dependency-version: 0.61.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 05:05:22 +00:00
dependabot[bot] 2515f343c0 build(deps): bump rcgen from 0.14.4 to 0.14.5
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.14.4 to 0.14.5.
- [Release notes](https://github.com/rustls/rcgen/releases)
- [Commits](https://github.com/rustls/rcgen/compare/v0.14.4...v0.14.5)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-version: 0.14.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 05:03:51 +00:00
dependabot[bot] 93b6d01605 build(deps): bump serde from 1.0.225 to 1.0.226
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.225 to 1.0.226.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.225...v1.0.226)

---
updated-dependencies:
- dependency-name: serde
  dependency-version: 1.0.226
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 13:26:55 +00:00
Dirkjan Ochtman a730d3dd58 Update semver-compatible dependencies 2025-09-19 21:27:00 +00:00
Dirkjan Ochtman b450a2e758 Fix warning about unneeded sub cfg 2025-09-19 21:27:00 +00:00
dependabot[bot] aaf63545cb build(deps): bump async-io from 2.5.0 to 2.6.0
Bumps [async-io](https://github.com/smol-rs/async-io) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/smol-rs/async-io/releases)
- [Changelog](https://github.com/smol-rs/async-io/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/async-io/compare/v2.5.0...v2.6.0)

---
updated-dependencies:
- dependency-name: async-io
  dependency-version: 2.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 07:47:47 +00:00
dependabot[bot] f76410dc70 build(deps): bump serde from 1.0.219 to 1.0.223
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.219 to 1.0.223.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.219...v1.0.223)

---
updated-dependencies:
- dependency-name: serde
  dependency-version: 1.0.223
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 14:40:07 +00:00
dependabot[bot] da06312464 build(deps): bump rcgen from 0.14.3 to 0.14.4
Bumps [rcgen](https://github.com/rustls/rcgen) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/rustls/rcgen/releases)
- [Commits](https://github.com/rustls/rcgen/compare/v0.14.3...v0.14.4)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-version: 0.14.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 13:31:53 +00:00
Seto 8449cf7ccb Add watchOS to BSD-like OS target list 2025-09-14 21:10:16 +00:00
Max Leonard Inden c1c56861cf fix(udp/unix): don't panic on unknown address family
We have reports that on some MacOS 10.15 systems, recvmsg can return a non IPv4
or IPv4 `RecvMeta`, potentially due to uninitialized memory. Instead of
panicking on an unknown address family, simply return an IO error.

Fixes https://github.com/quinn-rs/quinn/issues/2383.
2025-09-14 16:46:47 +00:00
Max Leonard Inden 74680528ca feat!(udp): mark RecvMeta as non_exhaustive
Mark `RecvMeta` as non exhaustive such that subsequent field additions are not
breaking changes.

Fixes https://github.com/quinn-rs/quinn/issues/2378.
2025-09-14 16:45:17 +00:00
Dirkjan Ochtman 3e302f7282 Upgrade windows-sys to 0.61 2025-09-08 20:31:52 +00:00
Dirkjan Ochtman c4eaafa950 Update semver-compatible dependencies 2025-09-08 20:31:52 +00:00
Sinh Pham c8970cf72e Add interface_index to RecvMeta 2025-09-07 03:44:54 +00:00
Phoenix Kahlo 7d7afb5b3e refactor(proto): Box AcceptError
Boxes AcceptError to avoid clippy::result_large_err, rather than
suppressing it. Breaking change.
2025-09-06 20:51:05 +00:00
Phoenix Kahlo 1350132407 refactor: Pass ConnectionId by value
Breaking.
2025-09-06 20:08:59 +00:00
Philipp Krüger fe596df2c4 Store a Box<dyn AsyncUdpSocket> instead of Arcing it, make poll_recv take &mut self 2025-09-02 17:50:24 +00:00
Philipp Krüger aa2d7736de Refactor UdpPoller into UdpSender and use it in favor of AsyncUdpSocket in connections 2025-09-02 17:50:24 +00:00
Max Inden 377af28843 refactor!: rename log feature to tracing-log
Previously `quinn*` would provide the `log` feature to log events via `log` if
no `tracing` subscriber exists.

Later https://github.com/quinn-rs/quinn/pull/1923 allowed `quinn-udp` to log via
`log` directly, making `tracing` an optional dependency. For that, it introduced
the `direct-log` feature, a workaround name in order to not introduce a breaking
change.

This commit cleans up the above, renaming the `log` feature to `tracing-log` and
the `direct-log` to `log`. This is a breaking change and thus `quinn-udp` is
bumped to `v0.6.0`.

See https://github.com/quinn-rs/quinn/pull/1921 for the full history.
2025-09-02 17:48:05 +00:00
Dirkjan Ochtman 80b8ffdb4b Use newer rustls-pki-types PEM parser API 2025-09-02 17:46:40 +00:00
Benjamin Saunders 1c44dba956 Improve numerical stability of Pacer::delay 2025-09-01 22:03:57 +00:00
Benjamin Saunders 2f5df7c350 Reduce pacing in fragile tests 2025-09-01 22:03:57 +00:00
Benjamin Saunders ecb72da188 Limit pacing batch size to 10ms of traffic 2025-09-01 22:03:57 +00:00
Benjamin Saunders 719fc367f3 Rename BURST_INTERVAL to TARGET_BURST_INTERVAL 2025-09-01 22:03:57 +00:00
Benjamin Saunders e89d7585d4 Strongly typed burst interval 2025-09-01 22:03:57 +00:00
Dirkjan Ochtman 0e5834ca32 Remove more traces of async-std 2025-09-01 19:00:40 +00:00
Dirkjan Ochtman d845f4009d quinn: drop async-std support 2025-09-01 07:43:43 +00:00
Benjamin Saunders 50a0ef321e Update obsolete rustls API guidance 2025-09-01 04:12:13 +00:00
Benjamin Saunders d3862a01bc Bump versions for upcoming breaking changes 2025-09-01 04:12:13 +00:00
Dirkjan Ochtman e4f0550b29 perf: move main() above Cli 2025-08-31 17:48:31 +00:00