Update chttp2_server.cc

pull/36743/head
Craig Tiller 9 months ago committed by GitHub
parent 84788a996b
commit 41edce0dc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      src/core/ext/transport/chttp2/server/chttp2_server.cc

@ -484,12 +484,6 @@ void Chttp2ServerListener::ActiveConnection::HandshakingState::OnHandshakeDone(
if (channel_init_err.ok()) {
// Use notify_on_receive_settings callback to enforce the
// handshake deadline.
// Note: The reinterpret_cast<>s here are safe, because
// grpc_chttp2_transport is a C-style extension of
// Transport, so this is morally equivalent of a
// static_cast<> to a derived class.
// TODO(roth): Change to static_cast<> when we C++-ify the
// transport API.
self->connection_->transport_ =
DownCast<grpc_chttp2_transport*>(transport.get())->Ref();
self->Ref().release(); // Held by OnReceiveSettings().

Loading…
Cancel
Save