3.5.4.1 Establishing a Polling Encapsulation Connection

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

The ConnectionEstablishment timer SHOULD be started.

The client generates a new virtual connection GUID and stores it in the VirtualConnectionGUID variable.

The client set PostSessionState to 'Probing'.

The client opens one connection and a POST session to a target determined by the availability of proxy configuration information. If the client has proxy configuration information available; it uses the port and hostname found in the ProxyServerPort and ProxyServerHostName state information and uses section 3.5.4.1.2 to open a POST session. If no proxy configuration information is available; the client uses the port and hostname found in the ServerPort and ServerHostName state information and uses section 3.5.4.1.1 to open a POST session.