From 762f7a4d7b3155254416b460c28a23c418ae59ed Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 2 Aug 2013 18:13:24 +0200 Subject: [SERVER] several improvements 1) Close uplink if local copy is complete 2) Fix memleak when closing uplink (recv buffer was not cleared) 3) Add configurable artificial delays for client and server connections --- src/server/globals.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/server/globals.h') diff --git a/src/server/globals.h b/src/server/globals.h index b063fc3..b77c547 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -133,6 +133,17 @@ extern char *_basePath; */ extern int _vmdkLegacyMode; +/** + * How much artificial delay should we add when a server connects to us? + */ +extern int _serverPenalty; + +/** + * How much artificial delay should we add when a client connects to us? + */ +extern int _clientPenalty; + + extern int _shutdown; void globals_loadConfig(); -- cgit v1.2.3-55-g7522