Resize channel resource quota (#29274)

pull/29277/head
Alisha Nanda 3 years ago committed by GitHub
parent 08451810a6
commit 276dc89fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/resource_quota/api.h
  2. 2
      src/core/lib/security/transport/secure_endpoint.cc

@ -27,7 +27,7 @@ namespace grpc_core {
// TODO(ctiller): This is a hack. We need to do real accounting instead of
// hard coding.
constexpr size_t kResourceQuotaChannelSize = 50 * 1024;
constexpr size_t kResourceQuotaChannelSize = 34 * 1024;
// Retrieve the resource quota from the channel args.
// UB if not set.

@ -71,7 +71,7 @@ struct secure_endpoint {
->memory_quota()
->CreateMemoryOwner(absl::StrCat(grpc_endpoint_get_peer(transport),
":secure_endpoint"));
self_reservation = memory_owner.MakeReservation(sizeof(this));
self_reservation = memory_owner.MakeReservation(sizeof(*this));
read_staging_buffer =
memory_owner.MakeSlice(grpc_core::MemoryRequest(STAGING_BUFFER_SIZE));
write_staging_buffer =

Loading…
Cancel
Save