mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 10:02:59 +08:00
Fixed excessive push timer firing.
The timer is set when an output frame is generated; there is no need to arm it after it was fired.
This commit is contained in:
parent
9c8a7a52e1
commit
932bfe7b36
@ -1764,19 +1764,15 @@ static void
|
||||
ngx_quic_push_handler(ngx_event_t *ev)
|
||||
{
|
||||
ngx_connection_t *c;
|
||||
ngx_quic_connection_t *qc;
|
||||
|
||||
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ev->log, 0, "push timer");
|
||||
|
||||
c = ev->data;
|
||||
qc = c->quic;
|
||||
|
||||
if (ngx_quic_output(c) != NGX_OK) {
|
||||
ngx_quic_close_connection(c);
|
||||
return;
|
||||
}
|
||||
|
||||
ngx_add_timer(&qc->push, qc->tp.max_ack_delay);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user