summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-18 10:53:04 -0700
committerSage Weil <sage@inktank.com>2013-07-18 15:02:08 -0700
commit5e7241792f01bc99625374ffb352d048ca3ef996 (patch)
treea4c7bfba53e238c56e0acbbd1b6de865288d5eb9
parente1e0d5056d00772840a75ce3ac7cd1f172ba182a (diff)
downloadceph-5e7241792f01bc99625374ffb352d048ca3ef996.tar.gz
msgr: update docs for mark_down, mark_down_all semantics
* RESET events * note that the reset detection only happens if it is enabled in the policy. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/msg/Messenger.h42
1 files changed, 26 insertions, 16 deletions
diff --git a/src/msg/Messenger.h b/src/msg/Messenger.h
index 28643e10767..be0dcd1738e 100644
--- a/src/msg/Messenger.h
+++ b/src/msg/Messenger.h
@@ -476,22 +476,30 @@ public:
*/
virtual int send_keepalive(Connection *con) = 0;
/**
- * Mark down a Connection to a remote. This will cause us to
- * discard our outgoing queue for them, and if they try
- * to reconnect they will discard their queue when we
- * inform them of the session reset. If there is no
- * Connection to the given dest, it is a no-op.
- * It does not generate any notifications to the Dispatcher.
+ * Mark down a Connection to a remote.
+ *
+ * This will cause us to discard our outgoing queue for them, and if
+ * reset detection is enabled in the policy and the endpoint tries
+ * to reconnect they will discard their queue when we inform them of
+ * the session reset.
+ *
+ * If there is no Connection to the given dest, it is a no-op.
+ *
+ * This generates a RESET notification to the Dispatcher.
*
* @param a The address to mark down.
*/
virtual void mark_down(const entity_addr_t& a) = 0;
/**
- * Mark down the given Connection. This will cause us to
- * discard its outgoing queue, and if the endpoint tries
- * to reconnect they will discard their queue when we
- * inform them of the session reset.
+ * Mark down the given Connection.
+ *
+ * This will cause us to discard its outgoing queue, and if reset
+ * detection is enabled in the policy and the endpoint tries to
+ * reconnect they will discard their queue when we inform them of
+ * the session reset.
+ *
* If the Connection* is NULL, this is a no-op.
+ *
* It does not generate any notifications to the Dispatcher.
*
* @param con The Connection to mark down.
@@ -501,6 +509,14 @@ public:
mark_down(con.get());
}
/**
+ * Mark all the existing Connections down. This is equivalent
+ * to iterating over all Connections and calling mark_down()
+ * on each.
+ *
+ * This will generate a RESET event for each closed connections.
+ */
+ virtual void mark_down_all() = 0;
+ /**
* Unlike mark_down, this function will try and deliver
* all messages before ending the connection, and it will use
* the Pipe's existing semantics to do so. Once the Messages
@@ -530,12 +546,6 @@ public:
*/
virtual void mark_disposable(Connection *con) = 0;
/**
- * Mark all the existing Connections down. This is equivalent
- * to iterating over all Connections and calling mark_down()
- * on each.
- */
- virtual void mark_down_all() = 0;
- /**
* @} // Connection Management
*/
protected: