mirror of
https://github.com/nginx/nginx.git
synced 2024-12-11 09:49:02 +08:00
QUIC: use client max_ack_delay when computing pto timeout.
Previously, server max_ack_delay was used which is wrong. Also, level check is simplified.
This commit is contained in:
parent
e5c10dce5e
commit
6f9efd423e
@ -3423,10 +3423,8 @@ ngx_quic_pto(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx)
|
|||||||
return duration;
|
return duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx == &qc->send_ctx[2] && c->ssl->handshaked) {
|
if (ctx->level == ssl_encryption_application && c->ssl->handshaked) {
|
||||||
/* application send space */
|
duration += qc->ctp.max_ack_delay << qc->pto_count;
|
||||||
|
|
||||||
duration += qc->tp.max_ack_delay << qc->pto_count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return duration;
|
return duration;
|
||||||
|
Loading…
Reference in New Issue
Block a user