aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security/credentials/oauth2
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-09-28 08:37:51 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-09-28 08:37:51 -0700
commitef6b97659edb575a002d574db89d90f7ebf4b979 (patch)
tree249ed65682669483185f532e6b79da0f6922d995 /src/core/lib/security/credentials/oauth2
parent82509936ae1de5620825e8a5b27c34b47d9f1af8 (diff)
Add tracing, fix some transport bugs wrt buffer_pools
Diffstat (limited to 'src/core/lib/security/credentials/oauth2')
-rw-r--r--src/core/lib/security/credentials/oauth2/oauth2_credentials.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/security/credentials/oauth2/oauth2_credentials.c b/src/core/lib/security/credentials/oauth2/oauth2_credentials.c
index e9e83d1468..61c0815b2a 100644
--- a/src/core/lib/security/credentials/oauth2/oauth2_credentials.c
+++ b/src/core/lib/security/credentials/oauth2/oauth2_credentials.c
@@ -310,7 +310,7 @@ static void compute_engine_fetch_oauth2(
/* TODO(ctiller): Carry the buffer_pool in ctx and share it with the host
channel. This would allow us to cancel an authentication query when under
extreme memory pressure. */
- grpc_buffer_pool *buffer_pool = grpc_buffer_pool_create();
+ grpc_buffer_pool *buffer_pool = grpc_buffer_pool_create("oauth2_credentials");
grpc_httpcli_get(exec_ctx, httpcli_context, pollent, buffer_pool, &request,
deadline, grpc_closure_create(response_cb, metadata_req),
&metadata_req->response);
@@ -365,7 +365,8 @@ static void refresh_token_fetch_oauth2(
/* TODO(ctiller): Carry the buffer_pool in ctx and share it with the host
channel. This would allow us to cancel an authentication query when under
extreme memory pressure. */
- grpc_buffer_pool *buffer_pool = grpc_buffer_pool_create();
+ grpc_buffer_pool *buffer_pool =
+ grpc_buffer_pool_create("oauth2_credentials_refresh");
grpc_httpcli_post(exec_ctx, httpcli_context, pollent, buffer_pool, &request,
body, strlen(body), deadline,
grpc_closure_create(response_cb, metadata_req),