delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/08/14:35:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: Is there a way to increase SOMAXCONN ?
From: Rani Pinchuk <rani AT cpan DOT org>
To: cygwin AT cygwin DOT com
Organization:
Message-Id: <1047152133.2054.73.camel@mikush>
Mime-Version: 1.0
Date: 08 Mar 2003 20:35:34 +0100

Hi all,

Hopefully someone here can give me a pointer/explanation of how to
increase SOMAXCONN.

In the last Cygwin I setup, it is defined as 5:

In /usr/include/cygwin/socket.h:
...
/* Maximum queue length specificable by listen.  */
#define SOMAXCONN       5
...

I need it to be higher (a daemon I wrote refuse every now and then
connections, and I found out it is because of that "5").

I wonder why it is only 5 (on Linux, for example it is defined as 128),
and if there is a way to increase it. 

Thanks in advance,

Rani



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019