Mercurial > hg > nginx
comparison src/event/ngx_event_quic.c @ 8670:b14338acbf9d quic
QUIC: fixed logging PATH_CHALLENGE/RESPONSE and build with GCC < 5.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 22 Dec 2020 12:04:15 +0300 |
parents | 1823e2152fc4 |
children |
comparison
equal
deleted
inserted
replaced
8669:5b51d8405378 | 8670:b14338acbf9d |
---|---|
587 f->u.stream_data_blocked.id, | 587 f->u.stream_data_blocked.id, |
588 f->u.stream_data_blocked.limit); | 588 f->u.stream_data_blocked.limit); |
589 break; | 589 break; |
590 | 590 |
591 case NGX_QUIC_FT_PATH_CHALLENGE: | 591 case NGX_QUIC_FT_PATH_CHALLENGE: |
592 p = ngx_slprintf(p, last, "PATH_CHALLENGE data:0x%xL", | 592 p = ngx_slprintf(p, last, "PATH_CHALLENGE data:0x%*xs", |
593 *(uint64_t *) &f->u.path_challenge.data); | 593 sizeof(f->u.path_challenge.data), |
594 f->u.path_challenge.data); | |
594 break; | 595 break; |
595 | 596 |
596 case NGX_QUIC_FT_PATH_RESPONSE: | 597 case NGX_QUIC_FT_PATH_RESPONSE: |
597 p = ngx_slprintf(p, last, "PATH_RESPONSE data:0x%xL", | 598 p = ngx_slprintf(p, last, "PATH_RESPONSE data:0x%*xs", |
598 f->u.path_response); | 599 sizeof(f->u.path_challenge.data), |
600 f->u.path_challenge.data); | |
599 break; | 601 break; |
600 | 602 |
601 case NGX_QUIC_FT_NEW_TOKEN: | 603 case NGX_QUIC_FT_NEW_TOKEN: |
602 p = ngx_slprintf(p, last, "NEW_TOKEN"); | 604 p = ngx_slprintf(p, last, "NEW_TOKEN"); |
603 break; | 605 break; |