Mercurial > hg > nginx
comparison src/event/ngx_event_quic_transport.c @ 8261:55a3a9c50af2 quic
Add unsupported version into log.
This makes it easier to understand what client wants.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 23 Mar 2020 10:57:28 +0300 |
parents | f388c0ad3477 |
children | 66f59c67adf4 |
comparison
equal
deleted
inserted
replaced
8260:f388c0ad3477 | 8261:55a3a9c50af2 |
---|---|
292 | 292 |
293 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0, | 293 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0, |
294 "quic flags:%xi version:%xD", pkt->flags, pkt->version); | 294 "quic flags:%xi version:%xD", pkt->flags, pkt->version); |
295 | 295 |
296 if (pkt->version != quic_version) { | 296 if (pkt->version != quic_version) { |
297 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, "unsupported quic version"); | 297 ngx_log_error(NGX_LOG_ERR, pkt->log, 0, |
298 "unsupported quic version: 0x%xi", pkt->version); | |
298 return NGX_ERROR; | 299 return NGX_ERROR; |
299 } | 300 } |
300 | 301 |
301 p = ngx_quic_read_uint8(p, end, &idlen); | 302 p = ngx_quic_read_uint8(p, end, &idlen); |
302 if (p == NULL) { | 303 if (p == NULL) { |