WebSetKeepAlive Function

Action

Sets the Keep-Connection semantics for HTTP/HTTPS.

注: A subsequent WebSetBrowser call will override this setting.

Include file

WebAPI.bdh

Syntax

WebSetKeepAlive( in bAlive : boolean ) : boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
bAlive If this parameter is set to true, a Keep-Alive header is added to the request
注: Silk Performer automatically tries to reuse an open connection on subsequent requests.

Example

dcltrans
  transaction TWebInit
  begin
    WebSetKeepAlive(true);
  end TWebInit;

Sample scripts

WebMultiClientIpAddresses01.bdf