Web Vuser Functions (WEB) > Alphabetical List of Web Vuser Functions > web_disable_keep_alive

web_disable_keep_alive

Disables Keep–Alive HTTP connections.

C Language

int web_disable_keep_alive( );

Java Language

int object.disable_keep_alive( ); 
Argument
Description
object
An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

Parameterization

Parameterization is not applicable to this function.

General Information

The web_disable_keep_alive function is a service function that disables Keep–Alive HTTP connections. By default, the KeepAlive setting is enabled.

Keep–Alive connections, also known as persistent connections, allow clients to re–use established TCP connections to a HTTP server to download several elements on a page, or even to download several different URLs. When you disable Keep–Alive connections, a separate TCP connection is established to get each element on a page, increasing the load on the HTTP server.

This function is supported for all Web scripts.