Commit c1fc3a56 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

io-http2: show debug message after switching state to STATE_WRITE_DATA

It's confusing to see a send data frame on STATE_WRITE_HEADERS.
parent 22d0b993
Pipeline #285773 passed with stages
in 5 minutes and 16 seconds
......@@ -514,10 +514,11 @@ on_frame_send_callback (nghttp2_session *session,
}
break;
case NGHTTP2_DATA:
h2_debug (user_data, data, "[SEND] [DATA] bytes=%zu, finished=%d",
frame->data.hd.length, frame->hd.flags & NGHTTP2_FLAG_END_STREAM);
if (data->state < STATE_WRITE_DATA)
advance_state_from (data, STATE_WRITE_HEADERS, STATE_WRITE_DATA);
h2_debug (user_data, data, "[SEND] [DATA] bytes=%zu, finished=%d",
frame->data.hd.length, frame->hd.flags & NGHTTP2_FLAG_END_STREAM);
if (data->metrics) {
data->metrics->request_body_bytes_sent += frame->hd.length + FRAME_HEADER_SIZE;
data->metrics->request_body_size += frame->data.hd.length;
......
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