Mercurial > hg > nginx-quic
comparison src/event/ngx_event.c @ 7814:ab443e80d9e4 quic
Create new stream immediately on receiving new stream id.
Before the patch, full STREAM frame handling was delayed until the frame with
zero offset is received. Only node in the streams tree was created.
This lead to problems when such stream was deleted, in particular, it had no
handlers set for read events.
This patch creates new stream immediately, but delays data delivery until
the proper offset will arrive. This is somewhat similar to how accept()
operation works.
The ngx_quic_add_stream() function is no longer needed and merged into stream
handler. The ngx_quic_stream_input() now only handles frames for existing
streams and does not deal with stream creation.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 15 Apr 2020 14:29:00 +0300 |
parents | 38c0898b6df7 |
children | 0d2b2664b41c |
comparison
equal
deleted
inserted
replaced
7813:739f018225af | 7814:ab443e80d9e4 |
---|