aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grpc++/server.h')
-rw-r--r--include/grpc++/server.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/grpc++/server.h b/include/grpc++/server.h
index c686474702..b2b9044dca 100644
--- a/include/grpc++/server.h
+++ b/include/grpc++/server.h
@@ -79,7 +79,8 @@ class Server GRPC_FINAL : public GrpcLibrary,
class AsyncRequest;
// ServerBuilder use only
- Server(ThreadPoolInterface* thread_pool, bool thread_pool_owned);
+ Server(ThreadPoolInterface* thread_pool, bool thread_pool_owned,
+ int max_message_size);
// Register a service. This call does not take ownership of the service.
// The service must exist for the lifetime of the Server instance.
bool RegisterService(RpcService* service);
@@ -106,6 +107,8 @@ class Server GRPC_FINAL : public GrpcLibrary,
ServerAsyncStreamingInterface* stream,
CompletionQueue* cq, void* tag);
+ const int max_message_size_;
+
// Completion queue.
CompletionQueue cq_;
@@ -126,7 +129,7 @@ class Server GRPC_FINAL : public GrpcLibrary,
// Whether the thread pool is created and owned by the server.
bool thread_pool_owned_;
private:
- Server() : server_(NULL) { abort(); }
+ Server() : max_message_size_(-1), server_(NULL) { abort(); }
};
} // namespace grpc