Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_output.c @ 9144:bba136612fe4
QUIC: removed path->limited flag.
Its value is the opposite of path->validated.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 06 Jul 2023 17:49:01 +0400 |
parents | 48691bab4474 |
children | 93aee926d27f |
comparison
equal
deleted
inserted
replaced
9143:48691bab4474 | 9144:bba136612fe4 |
---|---|
279 | 279 |
280 if (!qc->conf->gso_enabled) { | 280 if (!qc->conf->gso_enabled) { |
281 return 0; | 281 return 0; |
282 } | 282 } |
283 | 283 |
284 if (qc->path->limited) { | 284 if (!qc->path->validated) { |
285 /* don't even try to be faster on non-validated paths */ | 285 /* don't even try to be faster on non-validated paths */ |
286 return 0; | 286 return 0; |
287 } | 287 } |
288 | 288 |
289 ctx = ngx_quic_get_send_ctx(qc, ssl_encryption_initial); | 289 ctx = ngx_quic_get_send_ctx(qc, ssl_encryption_initial); |
1273 static size_t | 1273 static size_t |
1274 ngx_quic_path_limit(ngx_connection_t *c, ngx_quic_path_t *path, size_t size) | 1274 ngx_quic_path_limit(ngx_connection_t *c, ngx_quic_path_t *path, size_t size) |
1275 { | 1275 { |
1276 off_t max; | 1276 off_t max; |
1277 | 1277 |
1278 if (path->limited) { | 1278 if (!path->validated) { |
1279 max = path->received * 3; | 1279 max = path->received * 3; |
1280 max = (path->sent >= max) ? 0 : max - path->sent; | 1280 max = (path->sent >= max) ? 0 : max - path->sent; |
1281 | 1281 |
1282 if ((off_t) size > max) { | 1282 if ((off_t) size > max) { |
1283 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, | 1283 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, |