|
|
@ -552,7 +552,8 @@ static void writing_action(void *gt, int iomgr_success_ignored) { |
|
|
|
void grpc_chttp2_add_incoming_goaway( |
|
|
|
void grpc_chttp2_add_incoming_goaway( |
|
|
|
grpc_chttp2_transport_global *transport_global, gpr_uint32 goaway_error, |
|
|
|
grpc_chttp2_transport_global *transport_global, gpr_uint32 goaway_error, |
|
|
|
gpr_slice goaway_text) { |
|
|
|
gpr_slice goaway_text) { |
|
|
|
char *msg = gpr_hexdump((char*)GPR_SLICE_START_PTR(goaway_text), GPR_SLICE_LENGTH(goaway_text), GPR_HEXDUMP_PLAINTEXT); |
|
|
|
char *msg = gpr_dump_slice(goaway_text, GPR_DUMP_ASCII); |
|
|
|
|
|
|
|
gpr_log(GPR_DEBUG, "got goaway [%d]: %s", goaway_error, msg); |
|
|
|
gpr_free(msg); |
|
|
|
gpr_free(msg); |
|
|
|
if (transport_global->goaway_state == GRPC_CHTTP2_ERROR_STATE_NONE) { |
|
|
|
if (transport_global->goaway_state == GRPC_CHTTP2_ERROR_STATE_NONE) { |
|
|
|
transport_global->goaway_state = GRPC_CHTTP2_ERROR_STATE_SEEN; |
|
|
|
transport_global->goaway_state = GRPC_CHTTP2_ERROR_STATE_SEEN; |
|
|
|