aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/server_builder.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-05-09 16:04:10 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-05-09 16:26:51 -0700
commitcdc0d03b2d868027f7b0158422885d58cc7b17ab (patch)
treeccbca46c594e2abffd26f3ef057a7069e18aed9a /include/grpc++/server_builder.h
parente74b9aeaa2987f8813d431684a30c675fd4b3acd (diff)
Add EnableWorkaround API to enable server workarounds
Diffstat (limited to 'include/grpc++/server_builder.h')
-rw-r--r--include/grpc++/server_builder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h
index 7ac23349c8..7d34592dbb 100644
--- a/include/grpc++/server_builder.h
+++ b/include/grpc++/server_builder.h
@@ -184,6 +184,11 @@ class ServerBuilder {
static void InternalAddPluginFactory(
std::unique_ptr<ServerBuilderPlugin> (*CreatePlugin)());
+ /// Enable a server workaround. Do not use unless you know what the workaround
+ /// does. For explanation and detailed descriptions of workarounds, see
+ /// docs/workarounds.md.
+ ServerBuilder& EnableWorkaround(uint32_t id);
+
private:
friend class ::grpc::testing::ServerBuilderPluginTest;
@@ -226,6 +231,7 @@ class ServerBuilder {
std::vector<std::unique_ptr<ServerBuilderOption>> options_;
std::vector<std::unique_ptr<NamedService>> services_;
std::vector<Port> ports_;
+ std::vector<const char *> enabled_workarounds_;
SyncServerSettings sync_server_settings_;