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

Improve timeout calculation

gf
This commit is contained in:
sapier 2014-07-12 15:58:08 +02:00
parent 944ffe9e53
commit 247a1ebf23
3 changed files with 31 additions and 19 deletions

View file

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