Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 1998 10:34:00 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        hackers@FreeBSD.ORG
Subject:   Supporting more than FD_SETSIZE fd's
Message-ID:  <199811091734.KAA04752@mt.sri.com>

next in thread | raw e-mail | index | archive | help
I looked through the handbook and the FAQ and didn't find anything, so
hopefully someone can help me out.

I need to support more than the default 255 FD's in an application (the
JDK for what it's worth).  To be portable, the code uses fd_set as
defined in <sys/types.h>.  Unfortunately, unless I redefine FD_SETSIZE
in every file that uses it, I still have a hard-limit on the number of
FD's the application can use.

Is there any 'portable' way of getting around this?  I'd really like to
have it use whichever open FD that the limit allows, but I know now way
of having this happen?

I looked through the code in Apache, and I don't see how it does this,
since I never saw any re-definition of FD_SETSIZE, or use of anything
other than fd_setsize.  (Although, I did see mention of FD_SETSIZE quite
a bit in the comments.)

Any help anyone can provide would be greatly appreciated!


Nate

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



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