🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #56800

Increasing Open Sockets per task

#56800
From: Mark Dignam
Date: Thu, 19 Dec 1996 00:00
21 lines
1312 bytes
Help. Please. This is from a desperate man. I just about no hair left, the
caffine/blood percentage is rising quickly, and my future therapist is
rubbing his hands in glee.

I have a Squid Web Proxy server, running on Linux 2.0.27. It works fine, but
for one small little feature^H^H^H^H^H^H^Hproblem.

Linux, by default, only allows 256 open File Descriptors open per task.
Squid uses two per each proxy 'get', one from the client and one from the
proxy to the source. This, along with the STDIN, etc, means I can have only
140 clients connected at any one time. Bad move.

I have looked in the KHG and the FAQ's, can't find anything.  I have tried
making the NR_OPEN value and OPEN_MAX in include/linux/limits.h to 1024, and
recompiling, but as soon as socket 256 gets opened, ouch, all hell breaks
loose. (Ok, I get a SIGSEG, and 123 odd clients get their transfers lost.)

Any ideas?

Mark.
Technical Details
Message-ID: <59bk9a$bkk@demeter.omen.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,9adca5a9eec8c0d4,start
X-Google-Attributes: gid102983,public
From: digger@omen.net.au (Mark Dignam)
Subject: Increasing Open Sockets per task
Date: 1996/12/19
Message-ID: <59bk9a$bkk@demeter.omen.com.au>
X-Deja-AN: 204928126
organization: Omen Computer Services, Perth, Western Australia
newsgroups: aus.computers.linux