Re: patch for ParallelUA
David L. Sifry (david@sifry.com)
Tue, 21 Oct 1997 15:15:32 -0700
Marc Langheinrich wrote:
>
> On Tue, 5 Aug 1997, Luuk de Boer wrote:
> > When I request 255 url's 253 urls are going well but the 254 url and
> > the 255 url is giving me a 500 Can't resolve address back.
> > That's everytime with all different things.
> > Everytime it's giving from the 254 url a 500 code.
> > So here my question ..... does my linux (2.0.30 - redhat 4.2) have
> > any limit for that sort of things. I looked in IO::Socket and tested
> > a bit and when the 254's url is requested inet_aton is giving nothing
> > back instead of the same thing the last 253 requests. So is it
> > possible that there aren't any free sockets or so or different things
> > with a limit where inet_aton is depending on.
> Please note, though, that this fix doesn't help increasing the total
> number of available sockets (as there seems to be a limit, as Luuk
> describes it) - it just makes sure that used sockets gets closed and
> reopened if neccessary, instead of constantly opening new ones (and with
> this exhausting the maximal number real quick).
>
> If anybody knows more about this, let me know...
There is a constant called SOCK_ARRAY_SIZE, which is defined in the
linux source tree in linux/include/net/sock.h as 256. Try redefining
this to a higher number (though it must be a power of 2) and see if that
works.
God I love having a free OS complete with source code... :-)
Dave
--
Dave Sifry http://www.sifry.com
david@sifry.com (408) 471-0667 (voice) (408) 471-0666 (fax)
The power of a concept to change people's lives for the better.