diff options
author | Simon Rettberg | 2017-08-26 16:24:07 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-08-26 16:24:07 +0200 |
commit | 897615c6e926eefe2ef78dc7cc00fe633d2ab332 (patch) | |
tree | 60625ea05c0bda4a3a09286d91932d6bf5e52634 /src/server/globals.h | |
parent | [SERVER] Change handling of nonworking images, check for size change (diff) | |
download | dnbd3-897615c6e926eefe2ef78dc7cc00fe633d2ab332.tar.gz dnbd3-897615c6e926eefe2ef78dc7cc00fe633d2ab332.tar.xz dnbd3-897615c6e926eefe2ef78dc7cc00fe633d2ab332.zip |
[SERVER] Split server-only defs from config.h to serverconfig.h
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdint.h> #include <time.h> #include <pthread.h> @@ -195,6 +196,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. */ |