-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renetcode: use timeout given for ConnectToken instead of fixed 15 secs
- Loading branch information
1 parent
b873925
commit 9add0a3
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9add0a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this uses the same timeout on the server and client, is that recommended by the netcode spec?
9add0a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it uses the timeout from the connect token, this is what the c impl does:
https://github.com/mas-bandwidth/netcode/blob/8a9df4116510b1b6214e297fca4fce298da04d05/netcode.c#L3309
9add0a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok here is the actual code matching this commit: https://github.com/mas-bandwidth/netcode/blob/8a9df4116510b1b6214e297fca4fce298da04d05/netcode.c#L5145C47-L5145C47