Back to product page

KeepAlive property


Should wodHttpDLX send KeepAlive on remote server.

Syntax

  • Basic
object.KeepAlive [= value]
The KeepAlive(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodHttpDLX.
valueA HttpKeepAlives enumeration, as described in settings.

Remarks

The settings for value are:

Constant Value Description
Automatic0 Automatically send keep-alives
Always 1 Always send keep-alives
Never 2 Never send keep-alives


Starting with version 1.1 of the HTTP protocol, a client now has the ability to send notification to a remote server that it should not drop the connection after sending a response back to the client. This means a significant increase in the speed of communication because the client does not have to reconnect to the server to get another resource.

However, some servers may misbehave and produce unexpected errors, so the user is able to set this property to a value that suits him best. If KeepAlive is set to Automatic, wodHttpDLX will decide whether or not its going to send this header to a remote server. wodHttpDLX usually sends this header during a manual Connect method call, but also when Proxy server is used.

Platforms

Windows