From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 1 Mar 2013 17:39:05 +0000 (+0000)
Subject: Default to a max-client-connections limit of 128
X-Git-Tag: v_3_0_21~42
X-Git-Url: http://www.privoxy.org/gitweb/faq/@default-cgi@toggle?a=commitdiff_plain;h=c178346e3406cda46ea91b709ee4ef71a8081f4f;p=privoxy.git

Default to a max-client-connections limit of 128

It's more than enough for single-user systems.
---

diff --git a/loadcfg.c b/loadcfg.c
index a5bc55d5..24ae8c0a 100644
--- a/loadcfg.c
+++ b/loadcfg.c
@@ -1,4 +1,4 @@
-const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.134 2012/10/21 12:53:33 fabiankeil Exp $";
+const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.135 2012/12/07 12:45:20 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/loadcfg.c,v $
@@ -467,7 +467,12 @@ struct configuration_spec * load_config(void)
    config->usermanual                = strdup(USER_MANUAL_URL);
    config->proxy_args                = strdup("");
    config->forwarded_connect_retries = 0;
-   config->max_client_connections    = 0;
+   /*
+    * 128 client sockets ought to be enough for everybody who can't
+    * be bothered to read the documentation to figure out how to
+    * increase the limit.
+    */
+   config->max_client_connections    = 128;
    config->socket_timeout            = 300; /* XXX: Should be a macro. */
 #ifdef FEATURE_CONNECTION_KEEP_ALIVE
    config->default_server_timeout    = 0;