Apache::Throttle

Apache/Perl module for speed-based content negotiation
Download

Apache::Throttle Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Don Schwarz
  • Publisher web site:
  • http://search.cpan.org/~dons/

Apache::Throttle Tags


Apache::Throttle Description

Apache/Perl module for speed-based content negotiation Apache::Throttle is a Perl class made up of two separate modules.Apache::Throttle is responsible for negotiating the content of certain requests based on the speed of the connection. It does this by checking each request to see if it passes the following criteria: * it is a directory, * it does not end in a /, * and it contains a file named .throttle.If the request passes, Apache::Throttle will open the .throttle file and read a number from it. This is the time (in seconds) that the requested file should take to send, ideally. It then takes the sizes of each of the files in the directory (ignoring any that start with a period) and calculates the speed required to send the file to the client in under the specified number of seconds. Finally, it predicts the speed of the current connection and maps the request to point to the largest file that can still be sent in the ideal time.This implementation allows you to create a virtual copy of a file simply by dropping the different versions of the file into a directory in your HTML tree with same name that you want the file to have. These files can be named anything you want, although they should end in the same extension for MIME-type mapping to work properly. A script, throttleimg, is provided which automatically sets up this directory structure from an existing GIF or JPEG image.Apache::Throttle::Log is responsible for measuring the speed that other requests are transmitted at and calculating the average transmittion speed for each connection. This information is used by Apache::Throttle by default, but it can also be accessed by other modules. See Apache::Throttle::Log for more information.SYNOPSIS PerlTransHandler Apache::Throttle # See the Apache::Throttle::Log manpage for options... PerlFixUpHandler Apache::Throttle::Log Requirements: · Perl


Apache::Throttle Related Software