MaxKeepAliveRequests Directive

Top - Docs - General - Server - Resource - Access - FAQ - Tutorials

Purpose

This directive specifies how many requests the client can make through the connection before the server closes it.


Syntax

MaxKeepAliveRequests #num

Where #num is the number of requests the server will fulfill.
A #num of 0 implies no maximum, and the server will continue the KeepAlive transaction until the KeepAliveTimeout or until the browser closes the connection.


Virtual Host

This directive is not valid in VirtualHost configuration.


Default

The default is 5.

Compile Option: DEFAULT_KEEPALIVE_MAXREQUESTS


Examples

MaxKeepAliveRequests 0

The server will only close the connection if the timeout value is reached, or a non-KeepAlive capable request is fulfilled (any request for which the server cannot determine before sending the size of the request, including most CGI scripts and Server Side Includes).


[Back] Return to Configuration File Overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / 10-02-95