From: Fabian Keil Date: Sun, 6 Sep 2009 14:17:00 +0000 (+0000) Subject: Enable FEATURE_CONNECTION_KEEP_ALIVE unconditionally. Enable FEATURE_CONNECTION_SHARI... X-Git-Tag: v_3_0_15~80 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=b9d96835b666ba142057c0ef0c426d23b8bbd3d1;ds=sidebyside Enable FEATURE_CONNECTION_KEEP_ALIVE unconditionally. Enable FEATURE_CONNECTION_SHARING on platforms with supported mutexes. --- diff --git a/acconfig.h b/acconfig.h index 7cd53cab..ac950bfa 100644 --- a/acconfig.h +++ b/acconfig.h @@ -167,10 +167,15 @@ #undef FEATURE_EXTENDED_HOST_PATTERNS /* - * Keep outgoing connections alive if possible. + * Keep connections alive if possible. */ #undef FEATURE_CONNECTION_KEEP_ALIVE +/* + * Allow to share outgoing connections between incoming connections. + */ +#undef FEATURE_CONNECTION_SHARING + /* * Use POSIX threads instead of native threads. */ diff --git a/configure.in b/configure.in index 4fdcedf1..9ed34c7a 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.135 2009/07/24 11:48:08 fabiankeil Exp $ +dnl $Id: configure.in,v 1.136 2009/08/01 11:41:58 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2009 the dnl Privoxy team. http://www.privoxy.org/ @@ -32,7 +32,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.135 $) +AC_REVISION($Revision: 1.136 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -897,9 +897,11 @@ else STATIC_PCRE_ONLY= fi +AC_DEFINE(FEATURE_CONNECTION_KEEP_ALIVE) + if test $have_pthread = "yes" -o $target_type = "mingw"; then - echo Enabling keep-alive support for outgoing connections. - AC_DEFINE(FEATURE_CONNECTION_KEEP_ALIVE) + echo Enabling connection-sharing support. + AC_DEFINE(FEATURE_CONNECTION_SHARING) fi dnl =================================================