lightyear
lightyear copied to clipboard
Multiple reconnections break client's ability to connect on WebTransport
Problem
If a client connects and disconnects from the server multiple times the client will not be able to connect to any server anymore (it will show timeout error). This happens only on WebTransport and works fine with UDP transport. This is only fixed if you restart the client app.
How to reproduce
On a client connect and disconnect from the server 3-5 times when using WebTransport
transport.
Example
I made a simple example with ability to quickly connect and disconnect on the client: https://github.com/Serverator/lightyear_playground
-
cargo run -- server
to start the server -
cargo run -- client
to start the client