From 829c0924c03a0d2567710d8a894c6b1f97b28ca9 Mon Sep 17 00:00:00 2001 From: Hakase Date: Thu, 6 Apr 2023 17:44:14 +0900 Subject: [PATCH] Latest update - 9067 --- src/event/quic/ngx_event_quic_streams.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index 6f0a752..3b72f83 100644 --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -472,6 +472,17 @@ ngx_quic_get_stream(ngx_connection_t *c, uint64_t id) if (qc->streams.initialized) { ngx_post_event(rev, &ngx_posted_events); + + if (qc->push.posted) { + /* + * The posted stream can produce output immediately. + * By postponing the push event, we coalesce the stream + * output with queued frames in one UDP datagram. + */ + + ngx_delete_posted_event(&qc->push); + ngx_post_event(&qc->push, &ngx_posted_events); + } } }