[COMMIT seastar master] rpc: Document server::stop() method

0 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
May 29, 2023, 5:28:28 AM5/29/23
to seastar-dev@googlegroups.com, Pavel Emelyanov
From: Pavel Emelyanov <xe...@scylladb.com>
Committer: Pavel Emelyanov <xe...@scylladb.com>
Branch: master

rpc: Document server::stop() method

Signed-off-by: Pavel Emelyanov <xe...@scylladb.com>

---
diff --git a/include/seastar/rpc/rpc.hh b/include/seastar/rpc/rpc.hh
--- a/include/seastar/rpc/rpc.hh
+++ b/include/seastar/rpc/rpc.hh
@@ -616,6 +616,13 @@ public:
server(protocol_base* proto, server_socket, resource_limits memory_limit = resource_limits(), server_options opts = server_options{});
server(protocol_base* proto, server_options opts, server_socket, resource_limits memory_limit = resource_limits());
void accept();
+ /**
+ * Stops the server.
+ *
+ * It makes sure that no new rpcs are admitted, no rpc handlers issued on this
+ * connection are running any longer and no replies on the previously running
+ * handlers will be sent.
+ */
future<> stop();
template<typename Func>
void foreach_connection(Func&& f) {
Reply all
Reply to author
Forward
0 new messages