3.3.4.1 Establishing a KeepAlive Encapsulation Connection

When the application requests a KeepAlive connection, the KeepAlive protocol layer MUST initialize the KeepAlive connection state variables as specified in the abstract data model (see section 3.3.1). After the connection state variables are initialized, the KeepAlive protocol enters into the connection establishment phase. Initialization SHOULD include fetching any proxy configuration information<26>.

The ConnectionState MUST be set to 'Connecting'. The ConnectionEstablishment timer SHOULD be started.

The client opens two connections to the server, one for a GET session and one for a POST session, as specified in sections 3.3.4.1.1 and 3.3.4.1.3. If proxy configuration information is supplied, the client MUST go through the proxy for each connection as specified in sections 3.3.4.1.2 and 3.3.4.1.4.

The client generates a new virtual connection GUID, stores it in the VirtualConnectionGUID variable, and sets the GetSessionState and PostSessionState to ‘Connecting’.