diff options
| author | Vladimir Homutov <vl@nginx.com> | 2021-04-15 12:17:19 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2021-04-15 12:17:19 +0300 |
| commit | 17eebfea99bb554741a5732ed3a4472399591c5a (patch) | |
| tree | d13ec12c84e6a20f723983a90e15300fb11d773b /src | |
| parent | 2f5bcafdde60c722fe5cd28965613abafb451acb (diff) | |
| download | nginx-17eebfea99bb554741a5732ed3a4472399591c5a.tar.gz nginx-17eebfea99bb554741a5732ed3a4472399591c5a.tar.bz2 | |
QUIC: avoid sending extra frames in case of error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/event/quic/ngx_event_quic_streams.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index 716550b3d..6739d3d93 100644 --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -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) { |
