summaryrefslogtreecommitdiffstats
path: root/src/test/messenger
diff options
context:
space:
mode:
authorPiotr Dałek <git@predictor.org.pl>2016-05-05 21:03:37 +0200
committerPiotr Dałek <git@predictor.org.pl>2016-09-13 19:57:04 +0200
commitd58d7d3dbd21a8dca0a19964f51cb9bf78814a75 (patch)
treece7a97707912e0346470f9947e9cb8fef337f425 /src/test/messenger
parentMerge pull request #11046 from stiopaa1/common_timer_deleteCopyConstrAndAssign (diff)
downloadceph-d58d7d3dbd21a8dca0a19964f51cb9bf78814a75.tar.xz
ceph-d58d7d3dbd21a8dca0a19964f51cb9bf78814a75.zip
msg/simple: add ms_handle_refused callback
Added new callback (ms_handle_refused) to dispatchers. It is called once connection attempt fails with ECONNREFUSED. Also added dummy ms_handle_refused handlers across codebase. Signed-off-by: Piotr Dałek <git@predictor.org.pl>
Diffstat (limited to 'src/test/messenger')
-rw-r--r--src/test/messenger/simple_dispatcher.h2
-rw-r--r--src/test/messenger/xio_dispatcher.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/messenger/simple_dispatcher.h b/src/test/messenger/simple_dispatcher.h
index 0c08003b761..57427901ca6 100644
--- a/src/test/messenger/simple_dispatcher.h
+++ b/src/test/messenger/simple_dispatcher.h
@@ -74,6 +74,8 @@ public:
* a reference to it.
*/
virtual void ms_handle_remote_reset(Connection *con);
+
+ virtual bool ms_handle_refused(Connection *con) { return false; }
/**
* @defgroup Authentication
diff --git a/src/test/messenger/xio_dispatcher.h b/src/test/messenger/xio_dispatcher.h
index 29c71a0ba17..3b59108071f 100644
--- a/src/test/messenger/xio_dispatcher.h
+++ b/src/test/messenger/xio_dispatcher.h
@@ -74,6 +74,8 @@ public:
* a reference to it.
*/
virtual void ms_handle_remote_reset(Connection *con);
+
+ virtual bool ms_handle_refused(Connection *con) { return false; }
/**
* @defgroup test_xio_dispatcher_h_auth Authentication