delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/22/08:01:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,TW_FD,TW_XF,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Sat, 22 May 2010 05:01:11 -0700
From: mki-cygwin AT mozone DOT net
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.1: Bind 9.6.0-P1 on Vista: could not listen on UDP socket: not enough free resources (patch attached)
Message-ID: <20100522120111.GA21401@cyclonus.mozone.net>
References: <4B796E07 DOT 6080203 AT hp DOT com> <20100518211356 DOT GA18141 AT cyclonus DOT mozone DOT net>
Mime-Version: 1.0
In-Reply-To: <20100518211356.GA18141@cyclonus.mozone.net>
User-Agent: Mutt/1.4.2.3i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

--EeQfGwPcQSOJBaQU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, May 18, 2010 at 02:13:56PM -0700, you wrote:
> > 15-Feb-2010 16:33:36.437 socket: file descriptor exceeds limit (128/64)
> 
> Not sure why this is happening other than the default limits not being 
> honored and/or get botched by setrlimit() in there somewhere...

So the issue with named not being able to bind to the ports is related
to the default FD_SETSIZE limit of 64.  When accept returns an fd, it
seems to be some value above 128.  Since FD_SETSIZE is 64, the fd_set
structures all get created with that size and trying to call select
with maxfds set to something greater than 64 results in select
indefinetly spewing -1 with EBADF as errno.

The workaround I found was to recompile the sources, but making sure
that -DFD_SETSIZE=16384 is defined during the configure stage.  Patch
attached below.

Can someone please update the port with this bumped up FD_SETSIZE patch?

Thanks.

Mohan 

--EeQfGwPcQSOJBaQU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bind-9.6.0_p1-1.cygport.diff"

--- bind-9.6.0_p1-1.cygport.orig     2009-06-15 21:48:10.000000000 -0700
+++ bind-9.6.0_p1-1.cygport        2010-05-22 02:53:09.470329500 -0700
@@ -29,5 +29,5 @@
 liblwres_devel_CONTENTS+=" usr/share/man/man3/lwres*"

 DISTCLEANFILES="aclocal.m4 libtool.m4"
-CYGCONF_ARGS="--with-libtool"
 MAKEOPTS+=" -j1"
+CYGCONF_ARGS="--with-libtool CFLAGS=-DFD_SETSIZE=16384"
 MAKEOPTS+=" -j4"


--EeQfGwPcQSOJBaQU
Content-Type: text/plain; charset=us-ascii

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--EeQfGwPcQSOJBaQU--

- Raw text -


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