From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,9049691724ac5ab6,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f9325,c655f0a639aeebb5 X-Google-Attributes: gidf9325,public X-Google-Thread: fee84,c655f0a639aeebb5 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-02 08:36:32 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!news.duke.edu!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!cnam!cnam.cnam.fr!bortz From: bortzmeyer@cnam.fr (Stephane Bortzmeyer) Newsgroups: comp.protocols.tcp-ip,comp.unix.osf.osf1,comp.unix.programmer Subject: Increase the socket listen queue? (Was: TCP connection problem and how to interpret netstat output?) Followup-To: comp.unix.programmer Date: 2 Aug 1994 15:11:14 GMT Organization: Conservatoire National des Arts et Metiers, Paris, France Distribution: world Message-ID: <31lnmi$p9l@sheckley.cnam.fr> References: <31j1co$815@sheckley.cnam.fr> NNTP-Posting-Host: verne.cnam.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Xref: bga.com comp.protocols.tcp-ip:4785 comp.unix.osf.osf1:2835 comp.unix.programmer:5835 In article <31j1co$815@sheckley.cnam.fr>, bortz@cnam.cnam.fr (Stephane Bortzmeyer) writes: >The symptom is the following: most of the time, the server (which has, >at the present time, almost no other tasks, expect low-priority CPU- >intensive jobs) replies instantaneously to the clients on the same >Ethernet. But very often we see delays of 10, 20, 40 seconds and often >Mosaic times out. ... >Configuration: DEC 3000/600S with 128 Mb RAM, OSF/1 2.0. The HTTP >server is a local one (software written here). One hypothesis: the socket listen queue is full. I made a test program and saw that, when more than n (n being the parameter given to the listen(2) system call) clients are waiting, netstat displays the last clients as being in the state SYN_SENT (no reply from the callee yet). I observe exactly the same thing when my Web clients are blocked. If my hypothesis is correct, how to increase the maximum size of this queue? It defaults to 8 on OSF/1. It doesn't appear to be modifiable. I changed SOMAXCONN in /usr/include/sys/socket.h and rebuild the kernel with no results (only 8 clients can be in ESTABLISHED state). Anyone has an idea on this change? (I don't have OSF/1 sources :-) I made a Web page with the informations and the current state of work: http://www.cnam.fr/Network/Infosystems/Tools/tcp-http-problem.html Thanks in advance, Stephane Bortzmeyer Conservatoire National des Arts et Metiers bortzmeyer@cnam.fr Laboratoire d'Informatique 292, rue Saint-Martin tel: +33 (1) 40 27 27 31 75141 Paris Cedex 03 fax: +33 (1) 40 27 27 72 France "C'est la nuit qu'il est beau de croire a la lumiere." E. Rostand http://web.cnam.fr/personnes/bortzmeyer/home_page.dom