From 6bc0ecd946bf9a13bbf6324815ee3763fca0eaf9 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 27 Mar 2020 19:08:24 +0300 Subject: [PATCH] Push QUIC stream frames in send() and cleanup handler. --- src/event/ngx_event_quic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index aff97b2db..2a3e72803 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -1649,6 +1649,8 @@ ngx_quic_stream_send(ngx_connection_t *c, u_char *buf, size_t size) ngx_quic_queue_frame(qc, frame); + ngx_quic_output(pc); + return size; } @@ -1703,6 +1705,8 @@ ngx_quic_stream_cleanup_handler(void *data) ngx_sprintf(frame->info, "stream %xi fin=1 level=%d", qs->id, frame->level); ngx_quic_queue_frame(qc, frame); + + (void) ngx_quic_output(pc); }