pull/501/head
Craig Tiller 10 years ago
parent 0d1f67f4e5
commit c645306b64
  1. 4
      include/grpc++/impl/service_type.h
  2. 4
      include/grpc++/server_context.h
  3. 2
      src/cpp/server/server_context.cc

@ -82,7 +82,7 @@ class AsynchronousService {
size_t method_count)
: cq_(cq), method_names_(method_names), method_count_(method_count) {}
~AsynchronousService();
~AsynchronousService() { delete[] request_args_; }
CompletionQueue* completion_queue() const { return cq_; }
@ -125,4 +125,4 @@ class AsynchronousService {
} // namespace grpc
#endif // __GRPCPP_IMPL_SERVICE_TYPE_H__
#endif // __GRPCPP_IMPL_SERVICE_TYPE_H__

@ -49,6 +49,8 @@ template <class R>
class ServerAsyncReader;
template <class W>
class ServerAsyncWriter;
template <class W>
class ServerAsyncResponseWriter;
template <class R, class W>
class ServerAsyncReaderWriter;
template <class R>
@ -80,6 +82,8 @@ class ServerContext final {
friend class ::grpc::ServerAsyncReader;
template <class W>
friend class ::grpc::ServerAsyncWriter;
template <class W>
friend class ::grpc::ServerAsyncResponseWriter;
template <class R, class W>
friend class ::grpc::ServerAsyncReaderWriter;
template <class R>

@ -38,6 +38,8 @@
namespace grpc {
ServerContext::ServerContext() {}
ServerContext::ServerContext(gpr_timespec deadline, grpc_metadata *metadata,
size_t metadata_count)
: deadline_(Timespec2Timepoint(deadline)) {

Loading…
Cancel
Save