3.2.6.3.4 Server Initiated Shutdown

The server initiates shutdown by sending the final response packet to TsProxySetupReceivePipe call with the PFC_LAST_FRAG bit set in the pfc_flags field. The server closes the channel after sending this response. The client SHOULD not call TsProxyCloseChannel after receiving this final response. The client SHOULD call the TsProxyCloseChannel method if the client initiates the shutdown, but not if the server initiates shutdown.

Prerequisites: The connection MUST be in Pipe Created state.

Sequential Processing Rules:

  1. The RDG server MUST send the final response packet to TsProxySetupReceivePipe call with the PFC_LAST_FRAG bit set in the pfc_flags field.

  2. The RDG server MUST close the channel.

  3. The connection MUST be transitioned to Tunnel Close Pending state.