3.2.5.15 Closing the Connection

To gracefully close a connection, the server MUST do the following:

  1. Delete all resources by using the MILCMD_CHANNEL_DELETERESOURCE (section 2.2.7.7) message.

  2. Close the channel by using the MILCTRLCMD_CLOSECHANNEL (section 2.2.5.6) message.

  3. Close the connection by using the MILCTRLCMD_CLOSECONNECTION (section 2.2.5.4) message.