aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2018-08-10 14:31:21 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2018-08-10 14:31:21 -0700
commitd760b26586b7c0621d39803df90af3ee2d3d5698 (patch)
treea5c1b749306110930249722789b4a3105c93eee4 /src/core
parent2580e1dbdcc9a26269aadca8495d9502b2313af4 (diff)
Modify comments
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ext/transport/chttp2/transport/chttp2_transport.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
index 983dfa3c05..d8829ca0cd 100644
--- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
+++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
@@ -812,12 +812,12 @@ static void set_write_state(grpc_chttp2_transport* t,
write_state_name(t->write_state),
write_state_name(st), reason));
t->write_state = st;
- // If the state is being reset back to idle, it means a write was just
- // finished. Make sure all the run_after_write closures are scheduled.
- //
- // This is also our chance to close the transport if the transport was marked
- // to be closed after all writes finish (for example, we received a go-away
- // from peer while we had some pending writes)
+ /* If the state is being reset back to idle, it means a write was just
+ finished. Make sure all the run_after_write closures are scheduled.
+
+ This is also our chance to close the transport if the transport was marked
+ to be closed after all writes finish (for example, if we received a go-away
+ from peer while we had some pending writes) */
if (st == GRPC_CHTTP2_WRITE_STATE_IDLE) {
grpc_chttp2_stream* s;
while (grpc_chttp2_list_pop_waiting_for_write_stream(t, &s)) {
@@ -1036,7 +1036,8 @@ static void write_action(void* gt, grpc_error* error) {
grpc_combiner_scheduler(t->combiner)));
}
-/* Callback from the grpc_endpoint after bytes have been written on the wire */
+/* Callback from the grpc_endpoint after bytes have been written by calling
+ * sendmsg */
static void write_action_end_locked(void* tp, grpc_error* error) {
GPR_TIMER_SCOPE("terminate_writing_with_lock", 0);
grpc_chttp2_transport* t = static_cast<grpc_chttp2_transport*>(tp);