pull/11118/head
Muxi Yan 8 years ago
parent e22bd48cd9
commit b1a80c751d
  1. 2
      include/grpc/impl/codegen/grpc_types.h
  2. 4
      src/cpp/server/server_builder.cc

@ -297,7 +297,7 @@ each time recvmsg (or equivalent) is called */
If 0 or unset, the balancer calls will have no deadline. */
#define GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS "grpc.grpclb_timeout_ms"
/** 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

@ -363,7 +363,7 @@ void ServerBuilder::InternalAddPluginFactory(
(*g_plugin_factory_list).push_back(CreatePlugin);
}
void ServerBuilder::EnableWorkaround(uint32_t id) {
ServerBuilder& ServerBuilder::EnableWorkaround(uint32_t id) {
switch (id) {
case GRPC_WORKAROUND_ID_CRONET_COMPRESSION:
enabled_workarounds_.push_back(GRPC_ARG_WORKAROUND_CRONET_COMPRESSION);
@ -371,6 +371,8 @@ void ServerBuilder::EnableWorkaround(uint32_t id) {
default:
gpr_log(GPR_ERROR, "Workaround %u is not exist or obsolete.", id);
}
return *this;
}
} // namespace grpc

Loading…
Cancel
Save