Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Apr 1998 14:47:11 -0800
From:      David Greenman <dg@root.com>
To:        Chad Wagner <cmwagner@tsunami.sodre.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Building a web server... 
Message-ID:  <199804032247.OAA07396@implode.root.com>
In-Reply-To: Your message of "Fri, 03 Apr 1998 17:12:38 EST." <199804032212.RAA22974@tsunami.sodre.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I am working on building a web server that runs under FreeBSD 2.2.6, and I was
>wondering what can be done in the case of 'port clogging', i.e. too many 
>requests to the port and it is backlogged due to this.  What can be done to
>alleviate this?  It seems like a TCP implementation issue, but almost every
>UNIX OS does it this way, obviously for a reason which is unknown to me.

   The usual solution to this is to increase the listen queue depth. There is
a kernel limit (kern.somaxconn or kern.ipc.somaxconn depending on which
version of FreeBSD), and of course the value passed into listen() needs to
also be increased.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804032247.OAA07396>