Go to the documentation of this file.
25 #include "absl/strings/str_cat.h"
26 #include "absl/strings/str_format.h"
40 static const size_t frame_size = 13;
42 if (
stats !=
nullptr)
stats->framing_bytes += frame_size;
54 *
p++ =
static_cast<uint8_t>(
id >> 24);
55 *
p++ =
static_cast<uint8_t>(
id >> 16);
56 *
p++ =
static_cast<uint8_t>(
id >> 8);
70 t->num_pending_induced_frames++;
79 "invalid rst_stream: length=%d, flags=%02x",
length,
flags));
96 while (
p->byte != 4 &&
cur !=
end) {
97 p->reason_bytes[
p->byte] = *
cur;
101 s->stats.incoming.framing_bytes +=
static_cast<uint64_t>(
end -
cur);
106 ((
static_cast<uint32_t>(
p->reason_bytes[1])) << 16) |
107 ((
static_cast<uint32_t>(
p->reason_bytes[2])) << 8) |
108 ((
static_cast<uint32_t>(
p->reason_bytes[3])));
111 "[chttp2 transport=%p stream=%p] received RST_STREAM(reason=%d)",
120 absl::StrCat(
"Received RST_STREAM with error code ", reason)),
std::string StrCat(const AlphaNum &a, const AlphaNum &b)
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec< Args... > &format, const Args &... args)
@ GRPC_ERROR_INT_HTTP2_ERROR
http2 error code associated with the error (see the HTTP2 RFC)
grpc_error_handle grpc_chttp2_rst_stream_parser_parse(void *parser, grpc_chttp2_transport *t, grpc_chttp2_stream *s, const grpc_slice &slice, int is_last)
#define GRPC_SLICE_MALLOC(len)
grpc_core::TraceFlag grpc_http_trace(false, "http")
#define GRPC_TRACE_FLAG_ENABLED(f)
grpc_error_handle grpc_error_set_str(grpc_error_handle src, grpc_error_strs which, absl::string_view str)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
unsigned __int64 uint64_t
#define GRPC_SLICE_START_PTR(slice)
@ GRPC_ERROR_STR_GRPC_MESSAGE
grpc status message associated with this error
#define GRPC_SLICE_END_PTR(slice)
#define GRPC_CHTTP2_FRAME_RST_STREAM
#define GRPC_ERROR_CREATE_FROM_STATIC_STRING(desc)
grpc_error_handle grpc_chttp2_rst_stream_parser_begin_frame(grpc_chttp2_rst_stream_parser *parser, uint32_t length, uint8_t flags)
GPRAPI void grpc_slice_buffer_add(grpc_slice_buffer *sb, grpc_slice slice)
grpc_slice grpc_chttp2_rst_stream_create(uint32_t id, uint32_t code, grpc_transport_one_way_stats *stats)
grpc_error_handle grpc_error_set_int(grpc_error_handle src, grpc_error_ints which, intptr_t value)
#define GRPC_ERROR_CREATE_FROM_CPP_STRING(desc)
void grpc_chttp2_mark_stream_closed(grpc_chttp2_transport *t, grpc_chttp2_stream *s, int close_reads, int close_writes, grpc_error_handle error)
void grpc_chttp2_add_rst_stream_to_next_write(grpc_chttp2_transport *t, uint32_t id, uint32_t code, grpc_transport_one_way_stats *stats)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:25