Add comments

pull/20139/head
Yash Tibrewal 5 years ago
parent 3476df0b50
commit 7315e75ce6
  1. 3
      src/core/lib/iomgr/tcp_posix.cc

@ -1030,6 +1030,8 @@ static void tcp_handle_write(void* arg /* grpc_tcp */, grpc_error* error) {
gpr_log(GPR_INFO, "write: delayed");
}
notify_on_write(tcp);
// tcp_flush does not populate error if it has returned false.
GPR_DEBUG_ASSERT(error == GRPC_ERROR_NONE);
} else {
cb = tcp->write_cb;
tcp->write_cb = nullptr;
@ -1037,6 +1039,7 @@ static void tcp_handle_write(void* arg /* grpc_tcp */, grpc_error* error) {
const char* str = grpc_error_string(error);
gpr_log(GPR_INFO, "write: %s", str);
}
// No need to take a ref on error since tcp_flush provides a ref.
GRPC_CLOSURE_SCHED(cb, error);
TCP_UNREF(tcp, "write");
}

Loading…
Cancel
Save