From 1587f73c38c9228a1a93889aae6351eff891cbe8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 2 Nov 2017 13:41:35 +0100 Subject: [SERVER] Support finer control over replication when a proxy connects to a proxy Introduce new flag in "select image" message to tell the uplink server whether we have background replication enabled or not. Also reject a connecting proxy if the connecting proxy uses BGR but we don't, as this would basically force the image to be replicated locally too. --- 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 2dbabd5..1475981 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -206,6 +206,13 @@ extern bool _closeUnusedFd; */ extern bool _backgroundReplication; +/** + * (In proxy mode): If connecting client is a proxy, and the requested image + * is not known locally, should we ask our known alt servers for it? + * Otherwise the request is rejected. + */ +extern bool _lookupMissingForProxy; + /** * Port to listen on (default: #define PORT (5003)) */ -- cgit v1.2.3-55-g7522