summaryrefslogtreecommitdiff
path: root/src/mongo/transport/session.h
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2018-03-29 13:57:52 -0400
committerJason Carey <jcarey@argv.me>2018-04-05 16:19:51 -0400
commit3a8ea2566835098bcfc39a403a39db0dcbf64ba4 (patch)
treed5277f00e89e387f90d36b209c70b5d018782561 /src/mongo/transport/session.h
parent170a620d2987553a218e98de1070813f32e773aa (diff)
downloadmongo-3a8ea2566835098bcfc39a403a39db0dcbf64ba4.tar.gz
SERVER-33821 TL changes for NITL
Transport Layer changes for NetworkInterfaceTransportLayer
Diffstat (limited to 'src/mongo/transport/session.h')
-rw-r--r--src/mongo/transport/session.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/transport/session.h b/src/mongo/transport/session.h
index a017fc6ce42..bfe45a6cbe2 100644
--- a/src/mongo/transport/session.h
+++ b/src/mongo/transport/session.h
@@ -114,6 +114,13 @@ public:
virtual Future<void> asyncSinkMessage(Message message) = 0;
/**
+ * Cancel any outstanding async operations. There is no way to cancel synchronous calls.
+ * Futures will finish with an ErrorCodes::CallbackCancelled error if they haven't already
+ * completed.
+ */
+ virtual void cancelAsyncOperations() = 0;
+
+ /**
* This should only be used to detect when the remote host has disappeared without
* notice. It does NOT work correctly for ensuring that operations complete or fail
* by some deadline.