]> git.kaiwu.me - nginx.git/commitdiff
QUIC: avoid sending extra frames in case of error.
authorVladimir Homutov <vl@nginx.com>
Thu, 15 Apr 2021 09:17:19 +0000 (12:17 +0300)
committerVladimir Homutov <vl@nginx.com>
Thu, 15 Apr 2021 09:17:19 +0000 (12:17 +0300)
src/event/quic/ngx_event_quic_streams.c

index 716550b3d986a8ea3278744e8ae853b915a337af..6739d3d930fa3f9ca3fb6dcb6dac111983c9f766 100644 (file)
@@ -718,6 +718,10 @@ ngx_quic_stream_cleanup_handler(void *data)
         return;
     }
 
+    if (qc->error) {
+        goto done;
+    }
+
     if ((qs->id & NGX_QUIC_STREAM_SERVER_INITIATED) == 0
         || (qs->id & NGX_QUIC_STREAM_UNIDIRECTIONAL) == 0)
     {