KeepAlivePolicy Property
Defines the keep-alive handling policy.
Syntax
property KeepAlivePolicy: TsbxKeepAlivePolicyTypes read get_KeepAlivePolicy write set_KeepAlivePolicy;
TsbxKeepAlivePolicyTypes = ( ckapStandardDefined, ckapPreferKeepAlive, ckapRelyOnServer, ckapKeepAlivesDisabled );
Default Value
ckapStandardDefined
Remarks
Use this property to tune-up the keep-alive mechanism as per the needs of your application.
ckapStandardDefined | 0 | Follow the standard |
ckapPreferKeepAlive | 1 | Always request a keep-alive connection |
ckapRelyOnServer | 2 | Not include the "Connection" header, allowing the server to choose the keep-alive mode |
ckapKeepAlivesDisabled | 3 | Disable keep-alives by including the "Connection: Close" header |