Web Servers on Unix and Linux - How to restrict number of concurrent connections to a directory

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > October 2005 > How to restrict number of concurrent connections to a directory





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to restrict number of concurrent connections to a directory
google@macrotex.net

2005-10-09, 2:48 am

I have a directory with some large (hundreds of megabytes) files that
are served by an Apache 2.0 server. I would like to be able to restrict
the number of connections to this directory at any one time to 10
concurrent connections. Has anyone been able to do this? If so, any
suggestions would be welcome.

Nick Kew

2005-10-09, 7:47 am

google@macrotex.net wrote:
> I have a directory with some large (hundreds of megabytes) files that
> are served by an Apache 2.0 server. I would like to be able to restrict
> the number of connections to this directory at any one time to 10
> concurrent connections. Has anyone been able to do this? If so, any
> suggestions would be welcome.
>


Er, why? Take a look at Heanet: 20,000+ concurrent big downloads
on a simple linux box, and traffic growing precisely because it's
so reliable.

But if you want to do it, the simplest way would be a module that
allocates download slots from an apr_reslist, and returns HTTP-503
when there are none available. A couple of hours work.

--
Nick Kew
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com