3.3.5.9 Receiving a Close Command

A relay server MUST process a Close as specified in section 3.1.5.9.

Additionally, if the Close command is received for an outbound single-hop session, the relay server MUST generate a ResourceHanlderAvailability event indicating a ‘fault’ state for all FanoutAddressingList entries using this session, specifying a failure code of ConnectionClosed (0x03), and the RelayURL of the remote relay. The generated ResourceHandlerAvailability notification MUST be processed as specified in section 3.3.4.1.2.

If the Close is received for an inbound fanout session, where the fanout session had associated outbound single-hop sessions to remote relay servers in the FanoutAddressingList, the relay server MUST send to each of those relay servers a Close command with ReasonId EmptySession (0x15).