Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kghost committed May 30, 2022
1 parent 8a8d4cb commit ef6a5ad
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/transport/SessionDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,20 @@ class DLL_EXPORT SessionDelegate
*/
virtual void OnSessionReleased() = 0;

/// @brief Called when the first message delivery in a session failed, so actions aiming to recover connection can be performed.
/**
* @brief
* Called when the first message delivery in an exchange fails, so actions aiming to recover connection can be performed.
*
* Note: the implementation must not do anything that will destroy the session or change the SessionHolder.
*/
virtual void OnFirstMessageDeliveryFailed() {}

/// @brief Called when a session is unresponsive for a while (detected by MRP)
/**
* @brief
* Called when a session is unresponsive for a while (detected by MRP)
*
* Note: the implementation must not do anything that will destroy the session or change the SessionHolder.
*/
virtual void OnSessionHang() {}
};

Expand Down

0 comments on commit ef6a5ad

Please sign in to comment.