Forum Moderators: phranque

Message Too Old, No Replies

clients making multiple simultaneous requests

How to honor only one request at a time (per file) from each client?

         

boatman

6:53 am on Oct 19, 2007 (gmt 0)

10+ Year Member



My site serves some large files. Some of the download clients make multiple simultaneous requests, each request is for a different segment of the same file. Is it possible to tell Apache to honor only one request at a time (per file) from each client?

jdMorgan

6:24 pm on Oct 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use a file-serving script to limit simultaneous requests. Or you could block these 'download utilities' and ask users to refrain from using them.

Jim

boatman

9:26 pm on Oct 22, 2007 (gmt 0)

10+ Year Member


Thanks for those tips. I don't yet know how to implement a file serving script, but I am having limited success with the some other methods.

The best solution seems to be the Apache module mod_limitipconn.c (not available at all web hosts). I found some examples of using mod_limitipconn at http://www.webhostgear.com/279.html

Using mod_limitipconn I can set a limit on the number of connections per IP address. This is exactly what's needed and I won't have to ban any download clients.