From ade3c279b973b4c0dbce57e4a403c498285d7db7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 10 Jul 2018 13:30:25 +0200 Subject: [SERVER] Fix use of wrong constant; increase queue len for hash checker --- src/server/uplink.c | 2 +- src/serverconfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/uplink.c b/src/server/uplink.c index b4fdf99..cefd2ac 100644 --- a/src/server/uplink.c +++ b/src/server/uplink.c @@ -432,7 +432,7 @@ static void* uplink_mainloop(void *data) } else { // Not complete - do measurement altservers_findUplink( link ); // This will set RTT_INPROGRESS (synchronous) - if ( _backgroundReplication == BGR_FULL && link->nextReplicationIndex == REP_NONE ) { + if ( _backgroundReplication == BGR_FULL && link->nextReplicationIndex == -1 ) { link->nextReplicationIndex = 0; } } diff --git a/src/serverconfig.h b/src/serverconfig.h index 677acce..6fcda58 100644 --- a/src/serverconfig.h +++ b/src/serverconfig.h @@ -13,7 +13,7 @@ #define SERVER_BAD_UPLINK_IGNORE 180 // How many seconds is a server ignored #define SERVER_MAX_UPLINK_QUEUE 1500 // Maximum number of queued requests per uplink #define SERVER_UPLINK_QUEUELEN_THRES 900 // Threshold where we start dropping incoming clients -#define SERVER_MAX_PENDING_ALT_CHECKS 50 // Length of queue for pending alt checks requested by uplinks +#define SERVER_MAX_PENDING_ALT_CHECKS 500 // Length of queue for pending alt checks requested by uplinks #define SERVER_CACHE_MAP_SAVE_INTERVAL 90 -- cgit v1.2.3-55-g7522