From 897615c6e926eefe2ef78dc7cc00fe633d2ab332 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 26 Aug 2017 16:24:07 +0200 Subject: [SERVER] Split server-only defs from config.h to serverconfig.h --- src/server/globals.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/server/globals.h') diff --git a/src/server/globals.h b/src/server/globals.h index b0dc66a..cc3b6be 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -3,6 +3,7 @@ #include "../types.h" #include "../shared/fdsignal.h" +#include "serverconfig.h" #include #include #include @@ -194,6 +195,12 @@ extern int _uplinkTimeout; */ extern int _clientTimeout; +/** + * If true, images with no active client will have their fd closed after some + * idle time. + */ +extern bool _closeUnusedFd; + /** * Should we replicate incomplete images in the background? * Otherwise, only blocks that were explicitly requested will be cached. -- cgit v1.2.3-55-g7522