Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 7225:e80930e5e422
HTTP/2: unknown frames now logged at info level.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 05 Mar 2018 21:35:13 +0300 |
parents | aa60f5799a4c |
children | 87e9e4aabf1b |
comparison
equal
deleted
inserted
replaced
7224:1ab290cf5267 | 7225:e80930e5e422 |
---|---|
781 ngx_log_debug4(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | 781 ngx_log_debug4(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, |
782 "http2 frame type:%ui f:%Xd l:%uz sid:%ui", | 782 "http2 frame type:%ui f:%Xd l:%uz sid:%ui", |
783 type, h2c->state.flags, h2c->state.length, h2c->state.sid); | 783 type, h2c->state.flags, h2c->state.length, h2c->state.sid); |
784 | 784 |
785 if (type >= NGX_HTTP_V2_FRAME_STATES) { | 785 if (type >= NGX_HTTP_V2_FRAME_STATES) { |
786 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, | 786 ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0, |
787 "http2 frame with unknown type %ui", type); | 787 "client sent frame with unknown type %ui", type); |
788 return ngx_http_v2_state_skip(h2c, pos, end); | 788 return ngx_http_v2_state_skip(h2c, pos, end); |
789 } | 789 } |
790 | 790 |
791 return ngx_http_v2_frame_states[type](h2c, pos, end); | 791 return ngx_http_v2_frame_states[type](h2c, pos, end); |
792 } | 792 } |