lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
685 stars 68 forks source link

Client vs server timeout #135

Closed UkoeHB closed 10 months ago

UkoeHB commented 11 months ago

When creating a connect token, the server timeout is passed in via ConnectToken::generate(), while the client timeout is implicitly set to NETCODE_TIMEOUT_SECONDS. From what I can tell in the netcode spec, the client timeout is meant to be configurable.

ConnectToken::generate() should also take in the client timeout. One workaround is to manually edit the connect token struct, since the fields are now pub.

lucaspoffo commented 10 months ago

Fixed in 9add0a326098f69a6a7489554c05f85dbec8c530