1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Scale resend timeout exponentially

This commit is contained in:
sfan5 2024-01-05 10:19:49 +01:00
parent 7acb14f7a1
commit 84d4647329
2 changed files with 15 additions and 8 deletions

View file

@ -42,11 +42,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define CONNECTION_TIMEOUT 30
#define RESEND_TIMEOUT_MIN 0.1
#define RESEND_TIMEOUT_MAX 3.0
// resend_timeout = avg_rtt * this
#define RESEND_TIMEOUT_FACTOR 4
/*
Server
*/