From 4f160f04cb819cafd9b4ddc53ccb24d48668aa92 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 21 Nov 2013 21:36:02 +0100 Subject: [PATCH] proxy: Set number of file descriptors much higher. Some users are hitting the 65k limit regularly, so we set the limit to a much higher number. --- html/cgi-bin/proxy.cgi | 2 +- lfs/squid | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index 6dd900ffd..acb4f979a 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -391,7 +391,7 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'} } } if (!($proxysettings{'FILEDESCRIPTORS'} =~ /^\d+/) || - ($proxysettings{'FILEDESCRIPTORS'} < 1) || ($proxysettings{'FILEDESCRIPTORS'} > 65536)) + ($proxysettings{'FILEDESCRIPTORS'} < 1) || ($proxysettings{'FILEDESCRIPTORS'} > 1048576)) { $errormessage = $Lang::tr{'proxy errmsg filedescriptors'}; goto ERROR; diff --git a/lfs/squid b/lfs/squid index a341857f7..1c17c0c3b 100644 --- a/lfs/squid +++ b/lfs/squid @@ -104,8 +104,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) --enable-eui \ --with-pthreads \ --with-dl \ - --with-maxfd="65536" \ - --with-filedescriptors=65536 \ + --with-filedescriptors=$$(( 16384 * 64 )) \ --with-large-files \ --with-aio \ --enable-async-io=8 \ -- 2.39.2