|
|
@ -110,11 +110,10 @@ grpc_error *grpc_chttp2_rst_stream_parser_parse(grpc_exec_ctx *exec_ctx, |
|
|
|
grpc_error *error = GRPC_ERROR_NONE; |
|
|
|
grpc_error *error = GRPC_ERROR_NONE; |
|
|
|
if (reason != GRPC_HTTP2_NO_ERROR || s->header_frames_received < 2) { |
|
|
|
if (reason != GRPC_HTTP2_NO_ERROR || s->header_frames_received < 2) { |
|
|
|
char *message; |
|
|
|
char *message; |
|
|
|
gpr_asprintf(&message, "Received RST_STREAM with error code %d", |
|
|
|
gpr_asprintf(&message, "Received RST_STREAM with error code %d", reason); |
|
|
|
reason); |
|
|
|
|
|
|
|
error = grpc_error_set_int( |
|
|
|
error = grpc_error_set_int( |
|
|
|
grpc_error_set_str(GRPC_ERROR_CREATE("RST_STREAM"), |
|
|
|
grpc_error_set_str(GRPC_ERROR_CREATE("RST_STREAM"), |
|
|
|
GRPC_ERROR_STR_GRPC_MESSAGE, message), |
|
|
|
GRPC_ERROR_STR_GRPC_MESSAGE, message), |
|
|
|
GRPC_ERROR_INT_HTTP2_ERROR, (intptr_t)reason); |
|
|
|
GRPC_ERROR_INT_HTTP2_ERROR, (intptr_t)reason); |
|
|
|
gpr_free(message); |
|
|
|
gpr_free(message); |
|
|
|
} |
|
|
|
} |
|
|
|