]> git.kaiwu.me - nginx.git/commit
QUIC: simplified stream initialization.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 10 Dec 2021 16:43:50 +0000 (19:43 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Fri, 10 Dec 2021 16:43:50 +0000 (19:43 +0300)
commit6ea39f03ae182e5455e2fbf0a39aabc9c150c377
tree1cbf797fc12b55763855ae436b8278e1d7687edb
parent59312ddac1afe8acc28a3cfc4786d42d057b4934
QUIC: simplified stream initialization.

After creation, a client stream is added to qc->streams.uninitialized queue.
After initialization it's removed from the queue.  If a stream is never
initialized, it is freed in ngx_quic_close_streams().  Stream initializer
is now set as read event handler in stream connection.

Previously qc->streams.uninitialized was used only for delayed stream
initialization.

The change makes it possible not to handle separately the case of a new stream
in stream-related frame handlers.  It makes these handlers simpler since new
streams and existing streams are now handled by the same code.
src/event/quic/ngx_event_quic_streams.c