You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A panic occurs when calling recv_from() on a UdpSocket after the socket has been shut down using shutdown(). The error message indicates that an Option::unwrap() is called on a None value within the recv_from method of the tokio-uring library.
Steps to Reproduce
Compile and run the following Rust code using Tokio-Uring:
The program should handle the shutdown state gracefully, either by returning a specific error or by not panicking.
Observed Behavior
The program panics with the following message:
thread 'main' panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-uring-0.5.0/src/io/recv_from.rs:71:55: called `Option::unwrap()` on a `None` value
The text was updated successfully, but these errors were encountered:
Environment
Description
A panic occurs when calling
recv_from()
on aUdpSocket
after the socket has been shut down usingshutdown()
. The error message indicates that anOption::unwrap()
is called on aNone
value within therecv_from
method of the tokio-uring library.Steps to Reproduce
Compile and run the following Rust code using Tokio-Uring:
Run the program with
cargo run
.Expected Behavior
The program should handle the shutdown state gracefully, either by returning a specific error or by not panicking.
Observed Behavior
The program panics with the following message:
The text was updated successfully, but these errors were encountered: