3.1.4.3 Sending Application Data

The LongLived connection MUST be in the 'Established' state to send application data. If the virtual connection is still being established, the client MUST buffer the data and wait until the connection is in the 'Established' state.

The client sends the SSTP stream data over the POST session. The SSTP stream data is in the LongLived-Entity-Body fragment (see section 2.2.2.2.3).

The client MUST keep track of the number of octets sent, as defined by the PostContentLength state variable, to ensure that the content length is not exceeded. It is a protocol error if PostContentLength exceeds the value specified in ConnectionContentLength.

If sending the entity body fragment would cause the PostContentLength to exceed the ConnectionContentLength, the client SHOULD close the LongLived connection and immediately re-establish a new LongLived virtual connection with the target server as specified in section 3.1.4.1<13>.