lucaspoffo / renet

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

Client vs server timeout #135

Closed UkoeHB closed 6 months ago

UkoeHB commented 6 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 6 months ago

Fixed in 9add0a326098f69a6a7489554c05f85dbec8c530