nghttpx: Properly log incoming GOAWAY from backend
This commit is contained in:
parent
4f9c78799c
commit
e9f4d0eec2
|
@ -1244,8 +1244,15 @@ int on_frame_recv_callback(nghttp2_session *session, const nghttp2_frame *frame,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case NGHTTP2_GOAWAY:
|
case NGHTTP2_GOAWAY:
|
||||||
SSLOG(WARN, http2session)
|
if (LOG_ENABLED(INFO)) {
|
||||||
<< "GOAWAY received; error_code=" << frame->goaway.error_code;
|
auto debug_data = util::ascii_dump(frame->goaway.opaque_data,
|
||||||
|
frame->goaway.opaque_data_len);
|
||||||
|
|
||||||
|
SSLOG(INFO, http2session)
|
||||||
|
<< "GOAWAY received: last-stream-id=" << frame->goaway.last_stream_id
|
||||||
|
<< ", error_code=" << frame->goaway.error_code
|
||||||
|
<< ", debug_data=" << debug_data;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue