quinn-rs / quinn

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

Reconnect best practice #1539

Closed serzhiio closed 1 year ago

serzhiio commented 1 year ago

What is the best practice to reconnect to a Quic server whithin same Udp client? Is there a way to auto reconnect, or should i make new Connection?

Ralith commented 1 year ago

To recover from a lost connection, you will need to make a new connection. If you're dealing with transient loss of network access, consider increasing your idle timeout so that connections are not lost as easily.