[bug] Fix race in EventEngine shim logging (#33973)

Fixes b/294124240. We could get clever and keep the peeraddr in the log,
but the wrapper address should be sufficient to tie things together.
pull/33975/head
AJ Heller 2 years ago committed by GitHub
parent 5325b65d84
commit f1e1832b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/lib/iomgr/event_engine_shims/endpoint.cc

@ -119,8 +119,7 @@ class EventEngineEndpointWrapper {
read_buffer->~SliceBuffer();
if (GRPC_TRACE_FLAG_ENABLED(grpc_tcp_trace)) {
size_t i;
gpr_log(GPR_INFO, "TCP: %p READ (peer=%s) error=%s", eeep_->wrapper,
std::string(eeep_->wrapper->PeerAddress()).c_str(),
gpr_log(GPR_INFO, "TCP: %p READ error=%s", eeep_->wrapper,
status.ToString().c_str());
if (gpr_should_log(GPR_LOG_SEVERITY_DEBUG)) {
for (i = 0; i < pending_read_buffer_->count; i++) {

Loading…
Cancel
Save