From: Fabian Keil Date: Sun, 6 Sep 2009 14:18:35 +0000 (+0000) Subject: Show status of CONNECTION_SHARING support on the show-status page. X-Git-Tag: v_3_0_15~79 X-Git-Url: http://www.privoxy.org/gitweb/%40proxy-info-url%40?a=commitdiff_plain;h=806d4d5ae408c5d9d1be5b5939c221292036687a;p=privoxy.git Show status of CONNECTION_SHARING support on the show-status page. --- diff --git a/cgisimple.c b/cgisimple.c index b416eb04..55bdc2fb 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.93 2009/05/16 13:27:20 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.94 2009/08/01 11:42:43 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1509,6 +1509,12 @@ static jb_err show_defines(struct map *exports) if (!err) err = map_conditional(exports, "FEATURE_CONNECTION_KEEP_ALIVE", 0); #endif /* ndef FEATURE_CONNECTION_KEEP_ALIVE */ +#ifdef FEATURE_CONNECTION_SHARING + if (!err) err = map_conditional(exports, "FEATURE_CONNECTION_SHARING", 1); +#else /* ifndef FEATURE_CONNECTION_SHARING */ + if (!err) err = map_conditional(exports, "FEATURE_CONNECTION_SHARING", 0); +#endif /* ndef FEATURE_CONNECTION_SHARING */ + #ifdef FEATURE_FAST_REDIRECTS if (!err) err = map_conditional(exports, "FEATURE_FAST_REDIRECTS", 1); #else /* ifndef FEATURE_FAST_REDIRECTS */ diff --git a/templates/show-status b/templates/show-status index c890a3e6..f631b879 100644 --- a/templates/show-status +++ b/templates/show-status @@ -237,6 +237,14 @@ Requires the keep-alive-timeout config directive to be set. + + FEATURE_CONNECTION_SHARING + @if-FEATURE_CONNECTION_SHARING-then@ Yes @else-not-FEATURE_CONNECTION_SHARING@ No @endif-FEATURE_CONNECTION_SHARING@ + + Allows to share outgoing connections between incoming connections. + Requires the connection-sharing config directive to be set. + + FEATURE_FAST_REDIRECTS @if-FEATURE_FAST_REDIRECTS-then@ Yes @else-not-FEATURE_FAST_REDIRECTS@ No @endif-FEATURE_FAST_REDIRECTS@