[ConfigFetcher] Set HTTP2 error to NO_ERROR for graceful GOAWAYs

pull/37939/head
Yash Tibrewal 4 months ago
parent 7e06934192
commit ba47fede1b
  1. 6
      src/core/ext/transport/chttp2/server/chttp2_server.cc

@ -627,8 +627,10 @@ void Chttp2ServerListener::ActiveConnection::SendGoAway() {
}
if (transport != nullptr) {
grpc_transport_op* op = grpc_make_transport_op(nullptr);
op->goaway_error =
GRPC_ERROR_CREATE("Server is stopping to serve requests.");
// Set an HTTP2 error of NO_ERROR to do graceful GOAWAYs.
op->goaway_error = grpc_error_set_int(
GRPC_ERROR_CREATE("Server is stopping to serve requests."),
StatusIntProperty::kHttp2Error, GRPC_HTTP2_NO_ERROR);
transport->PerformOp(op);
}
}

Loading…
Cancel
Save