Commit c36fcf17 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Print opaque_data_len of GOAWAY

parent 02a7182e
...@@ -308,10 +308,11 @@ void print_frame(print_type ptype, nghttp2_frame *frame) ...@@ -308,10 +308,11 @@ void print_frame(print_type ptype, nghttp2_frame *frame)
break; break;
case NGHTTP2_GOAWAY: case NGHTTP2_GOAWAY:
print_frame_attr_indent(); print_frame_attr_indent();
printf("(last_stream_id=%d, error_code=%s(%u), opaque_data=%s)\n", printf("(last_stream_id=%d, error_code=%s(%u), opaque_data(%u)=[%s])\n",
frame->goaway.last_stream_id, frame->goaway.last_stream_id,
strstatus(frame->goaway.error_code), strstatus(frame->goaway.error_code),
frame->goaway.error_code, frame->goaway.error_code,
static_cast<unsigned int>(frame->goaway.opaque_data_len),
util::format_hex(frame->goaway.opaque_data, util::format_hex(frame->goaway.opaque_data,
frame->goaway.opaque_data_len).c_str()); frame->goaway.opaque_data_len).c_str());
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment