Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 6790:727c6412673a
HTTP/2: slightly improved debugging.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 31 Oct 2016 23:38:51 +0300 |
parents | 9027991e2f37 |
children | 52bd8cc17f34 |
comparison
equal
deleted
inserted
replaced
6789:4dea01cf49e8 | 6790:727c6412673a |
---|---|
2590 { | 2590 { |
2591 ngx_buf_t *buf; | 2591 ngx_buf_t *buf; |
2592 ngx_http_v2_out_frame_t *frame; | 2592 ngx_http_v2_out_frame_t *frame; |
2593 | 2593 |
2594 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | 2594 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, |
2595 "http2 send RST_STREAM frame sid:%ui, status:%uz", | 2595 "http2 send RST_STREAM frame sid:%ui, status:%ui", |
2596 sid, status); | 2596 sid, status); |
2597 | 2597 |
2598 frame = ngx_http_v2_get_frame(h2c, NGX_HTTP_V2_RST_STREAM_SIZE, | 2598 frame = ngx_http_v2_get_frame(h2c, NGX_HTTP_V2_RST_STREAM_SIZE, |
2599 NGX_HTTP_V2_RST_STREAM_FRAME, | 2599 NGX_HTTP_V2_RST_STREAM_FRAME, |
2600 NGX_HTTP_V2_NO_FLAG, sid); | 2600 NGX_HTTP_V2_NO_FLAG, sid); |
2616 ngx_http_v2_send_goaway(ngx_http_v2_connection_t *h2c, ngx_uint_t status) | 2616 ngx_http_v2_send_goaway(ngx_http_v2_connection_t *h2c, ngx_uint_t status) |
2617 { | 2617 { |
2618 ngx_buf_t *buf; | 2618 ngx_buf_t *buf; |
2619 ngx_http_v2_out_frame_t *frame; | 2619 ngx_http_v2_out_frame_t *frame; |
2620 | 2620 |
2621 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | 2621 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, |
2622 "http2 send GOAWAY frame, status:%uz", status); | 2622 "http2 send GOAWAY frame: last sid %ui, error %ui", |
2623 h2c->last_sid, status); | |
2623 | 2624 |
2624 frame = ngx_http_v2_get_frame(h2c, NGX_HTTP_V2_GOAWAY_SIZE, | 2625 frame = ngx_http_v2_get_frame(h2c, NGX_HTTP_V2_GOAWAY_SIZE, |
2625 NGX_HTTP_V2_GOAWAY_FRAME, | 2626 NGX_HTTP_V2_GOAWAY_FRAME, |
2626 NGX_HTTP_V2_NO_FLAG, 0); | 2627 NGX_HTTP_V2_NO_FLAG, 0); |
2627 if (frame == NULL) { | 2628 if (frame == NULL) { |