From 053ca3b9a9601467d5ce30c56c3cea078c897f57 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Jul 2018 14:39:43 +0200 Subject: [SERVER] Refactor uplink/cache handling, improve crc checking The cacheFd is now moved to the uplink data structure and will only be handled by the uplink thread. The integrity checker now supports checking all blocks of an image. This will be triggered automatically whenever a check for a single block failed. Also, if a crc check on startup fails, the image won't be discarded anymore, but rather a full check will be initiated. Furthermore, when calling image_updateCacheMap() on an image that was previously complete, the cache map will now be re-initialized, and a new uplink connection created. --- src/server/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/server.c') diff --git a/src/server/server.c b/src/server/server.c index b209451..0944c51 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -334,7 +334,7 @@ int main(int argc, char *argv[]) } // Give other threads some time to start up before accepting connections - sleep( 1 ); + usleep( 100000 ); // setup network listeners = setupNetwork( bindAddress ); -- cgit v1.2.3-55-g7522