Skip to content

QUIC endpoint may panic when receiving an empty UDP packet #1069

Closed

Description

@AsakuraMizu

A client like this may cause the server to panic:

#[compio_macros::main]
async fn main() {
    let socket = compio_net::UdpSocket::bind("[::1]:0").await.unwrap();
    socket.send_to([], "[::1]:4433").await.unwrap();
}

Running compio-quic/examples/quic-server.rs:

thread 'main' (3777462) panicked at compio-quic/src/endpoint.rs:65:14:
chunk size must be non-zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Activity

  1. self-assigned this
    on Sep 25, 2026
  2. added theissue type on Sep 25, 2026
  3. added
    bug
    package: quic
    on Sep 25, 2026
  4. removed their assignment
    on Sep 25, 2026
  5. added a commit that references this issue on Oct 10, 2026
    552c420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuepackage: quic

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions