Skip to content
Snippets Groups Projects
Commit b1a80c75 authored by Muxi Yan's avatar Muxi Yan
Browse files

bug fixes

parent e22bd48c
No related branches found
No related tags found
No related merge requests found
...@@ -297,7 +297,7 @@ each time recvmsg (or equivalent) is called */ ...@@ -297,7 +297,7 @@ each time recvmsg (or equivalent) is called */
If 0 or unset, the balancer calls will have no deadline. */ If 0 or unset, the balancer calls will have no deadline. */
#define GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS "grpc.grpclb_timeout_ms" #define GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS "grpc.grpclb_timeout_ms"
/** If non-zero, grpc server's cronet compression workaround will be enabled */ /** If non-zero, grpc server's cronet compression workaround will be enabled */
#define GRPC_ARG_WORKAROUND_CRONET_COMPRESSION "grpc.socket_factory" #define GRPC_ARG_WORKAROUND_CRONET_COMPRESSION "grpc.workaround.cronet_compression"
/** \} */ /** \} */
/** Result of a grpc call. If the caller satisfies the prerequisites of a /** Result of a grpc call. If the caller satisfies the prerequisites of a
......
...@@ -363,7 +363,7 @@ void ServerBuilder::InternalAddPluginFactory( ...@@ -363,7 +363,7 @@ void ServerBuilder::InternalAddPluginFactory(
(*g_plugin_factory_list).push_back(CreatePlugin); (*g_plugin_factory_list).push_back(CreatePlugin);
} }
void ServerBuilder::EnableWorkaround(uint32_t id) { ServerBuilder& ServerBuilder::EnableWorkaround(uint32_t id) {
switch (id) { switch (id) {
case GRPC_WORKAROUND_ID_CRONET_COMPRESSION: case GRPC_WORKAROUND_ID_CRONET_COMPRESSION:
enabled_workarounds_.push_back(GRPC_ARG_WORKAROUND_CRONET_COMPRESSION); enabled_workarounds_.push_back(GRPC_ARG_WORKAROUND_CRONET_COMPRESSION);
...@@ -371,6 +371,8 @@ void ServerBuilder::EnableWorkaround(uint32_t id) { ...@@ -371,6 +371,8 @@ void ServerBuilder::EnableWorkaround(uint32_t id) {
default: default:
gpr_log(GPR_ERROR, "Workaround %u is not exist or obsolete.", id); gpr_log(GPR_ERROR, "Workaround %u is not exist or obsolete.", id);
} }
return *this;
} }
} // namespace grpc } // namespace grpc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment