You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Ramshaw <mr...@alumni.concordia.ca> on 2002/03/13 07:20:16 UTC

[PATCH] Solaris sockets for support/ab.c (httpd-2_0_32-beta)

By default, Solaris (at least, Solaris 7 for sparc) restricts the number of
file
handles that may be used. See the comments in the attached patch file for
more details.

I am a newbie, so please, only constructive criticism!

Now that I finally have enough time, rather than patch each successive
version of Apache, it seemed like a good idea to contribute these changes
to the CVS trunk.

Also, the patch instructions refer to 'new-httpd' which doesn't seem to
exist.
Neither do 'current-testers-subscribe@apache.org' or the other obvious
choice for this patch 'stable-testers-subscribe@apache.org'. So please
excuse me if I have sent this patch to the wrong group.

Of course, I have only made my best guess as to how to do this in a
multi-OS situation (for sparc's the changes can be applied without the
'ifdef's). I have tested the original changes (i.e. no 'ifdef' s) on
Solaris,
but with an older version of Apache.

    Best regards, Martin Ramshaw

Re: [PATCH] Solaris sockets for support/ab.c (httpd-2_0_32-beta)

Posted by Justin Erenkrantz <je...@ebuilt.com>.
On Wed, Mar 13, 2002 at 07:05:45AM -0500, Jeff Trawick wrote:
> "Martin Ramshaw" <mr...@alumni.concordia.ca> writes:
> 
> > By default, Solaris (at least, Solaris 7 for sparc) restricts the number of
> > file
> > handles that may be used. See the comments in the attached patch file for
> > more details.
> 
> Lots of Unix-ish systems work the same way.
> 
> Personally, I think it is better if you put "ulimit -n unlimited" in
> your shell init script rather than adding the logic to ab.

Yup, my thoughts too.  -- justin (wondering why I'm still up)


Re: [PATCH] Solaris sockets for support/ab.c (httpd-2_0_32-beta)

Posted by Jeff Trawick <tr...@attglobal.net>.
"Martin Ramshaw" <mr...@alumni.concordia.ca> writes:

> By default, Solaris (at least, Solaris 7 for sparc) restricts the number of
> file
> handles that may be used. See the comments in the attached patch file for
> more details.

Lots of Unix-ish systems work the same way.

Personally, I think it is better if you put "ulimit -n unlimited" in
your shell init script rather than adding the logic to ab.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...