[libsoup] io-http2: show more debug information in case of goaway frame
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] io-http2: show more debug information in case of goaway frame
- Date: Wed, 26 May 2021 14:05:41 +0000 (UTC)
commit bdefdf01ebf00078daea1ddc4730a01ee1a312dc
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed May 26 15:54:16 2021 +0200
io-http2: show more debug information in case of goaway frame
libsoup/http2/soup-client-message-io-http2.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 37609334..dfa97033 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -390,6 +390,10 @@ on_frame_recv_callback (nghttp2_session *session,
h2_debug (io, data, "[RECV] [%s] Recieved (%u)", frame_type_to_string (frame->hd.type),
frame->hd.flags);
if (frame->hd.type == NGHTTP2_GOAWAY) {
+ h2_debug (io, data, "[RECV] GOAWAY: error=%s, last_stream_id=%u %s",
+ nghttp2_http2_strerror (frame->goaway.error_code),
+ frame->goaway.last_stream_id,
+ frame->goaway.opaque_data ? (char *)frame->goaway.opaque_data : "");
handle_goaway (io, frame->goaway.error_code, frame->goaway.last_stream_id);
io->is_shutdown = TRUE;
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]