quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.85k stars 394 forks source link

Assertion failure `(left == right)` in debug builds on WSL1 using IPv4 #1276

Closed Ralith closed 2 years ago

Ralith commented 2 years ago

For example, the quinn's echo_v4 test panics with:

assertion failed: `(left == right)`
  left: `20`,
 right: `17`

Windows Subsystem for Linux version 1 provides an incorrect payload size of 4 for the IP_TOS control message, for which Linux documents a size of 1. This is therefore a bug in WSL, which is unlikely to be fixed due to the introduction of WSL 2, which uses a real Linux kernel and therefore does not have this bug. Release builds will still operate as intended, and IPv6 connections are not affected.