From 9858ab5bbb2fc5d1569257c0ee8f794fdae1c512 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 2 Sep 2017 18:03:15 +0200 Subject: [SERVER] Implement closeUnusedFd config option This will close the readFd of images that have no active clients after some idle period (1 hour currently). Prevents deleted images from taking up space until the server is shut down. --- src/serverconfig.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/serverconfig.h') diff --git a/src/serverconfig.h b/src/serverconfig.h index ea772b9..e8127c0 100644 --- a/src/serverconfig.h +++ b/src/serverconfig.h @@ -42,5 +42,8 @@ #define RTT_THRESHOLD_FACTOR(us) (((us) * 2) / 3) // 2/3 = current to best must be 33% worse +// How many seconds have to pass after the last client disconnected until the imagefd is closed +#define UNUSED_FD_TIMEOUT 3600 + #endif -- cgit v1.2.3-55-g7522