mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
QUIC packet padding to fulfil header protection sample demands.
This commit is contained in:
parent
e9d67086c7
commit
833a28244f
1 changed files with 5 additions and 0 deletions
|
|
@ -1369,6 +1369,11 @@ ngx_quic_frames_send(ngx_connection_t *c, ngx_quic_frame_t *start,
|
|||
|
||||
out.len = p - out.data;
|
||||
|
||||
while (out.len < 4) {
|
||||
*p++ = NGX_QUIC_FT_PADDING;
|
||||
out.len++;
|
||||
}
|
||||
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||
"packet ready: %ui bytes at level %d",
|
||||
out.len, start->level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue