Log frame's stream ID for header debug logging
Previously, for PUSH_PROMISE frame, we logged its promised stream ID. But it is saner to use just frame's ID in this context.
This commit is contained in:
parent
8ab079ccc2
commit
318235db33
|
@ -3581,7 +3581,7 @@ static int inflate_header_block(nghttp2_session *session, nghttp2_frame *frame,
|
||||||
if (rv == NGHTTP2_ERR_HTTP_HEADER) {
|
if (rv == NGHTTP2_ERR_HTTP_HEADER) {
|
||||||
DEBUGF(fprintf(
|
DEBUGF(fprintf(
|
||||||
stderr, "recv: HTTP error: type=%u, id=%d, header %.*s: %.*s\n",
|
stderr, "recv: HTTP error: type=%u, id=%d, header %.*s: %.*s\n",
|
||||||
frame->hd.type, subject_stream->stream_id, (int)nv.name->len,
|
frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
|
||||||
nv.name->base, (int)nv.value->len, nv.value->base));
|
nv.name->base, (int)nv.value->len, nv.value->base));
|
||||||
|
|
||||||
rv = session_call_error_callback(
|
rv = session_call_error_callback(
|
||||||
|
@ -3609,7 +3609,7 @@ static int inflate_header_block(nghttp2_session *session, nghttp2_frame *frame,
|
||||||
/* header is ignored */
|
/* header is ignored */
|
||||||
DEBUGF(fprintf(
|
DEBUGF(fprintf(
|
||||||
stderr, "recv: HTTP ignored: type=%u, id=%d, header %.*s: %.*s\n",
|
stderr, "recv: HTTP ignored: type=%u, id=%d, header %.*s: %.*s\n",
|
||||||
frame->hd.type, subject_stream->stream_id, (int)nv.name->len,
|
frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
|
||||||
nv.name->base, (int)nv.value->len, nv.value->base));
|
nv.name->base, (int)nv.value->len, nv.value->base));
|
||||||
|
|
||||||
rv2 = session_call_error_callback(
|
rv2 = session_call_error_callback(
|
||||||
|
|
Loading…
Reference in New Issue