From: Fabian Keil Date: Wed, 26 Aug 2020 14:59:36 +0000 (+0200) Subject: Explicitly prevent use of FEATURE_CONNECTION_SHARING without FEATURE_CONNECTION_KEEP_... X-Git-Tag: v_3_0_29~180 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=998def6e7a20bdf0a14b0177d9668a6c76fac19b Explicitly prevent use of FEATURE_CONNECTION_SHARING without FEATURE_CONNECTION_KEEP_ALIVE It makes no sense and does not compile anyway. Sponsored by: Robert Klemme --- diff --git a/gateway.c b/gateway.c index 64ba5236..46db1e32 100644 --- a/gateway.c +++ b/gateway.c @@ -129,6 +129,9 @@ struct socks_reply { static const char socks_userid[] = "anonymous"; #ifdef FEATURE_CONNECTION_SHARING +#ifndef FEATURE_CONNECTION_KEEP_ALIVE +#error Using FEATURE_CONNECTION_SHARING without FEATURE_CONNECTION_KEEP_ALIVE is impossible +#endif #define MAX_REUSABLE_CONNECTIONS 100