]> git.kaiwu.me - nginx.git/commit
QUIC: fixed ngx_http_test_reading() for QUIC streams.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 11 Aug 2020 07:41:39 +0000 (10:41 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 11 Aug 2020 07:41:39 +0000 (10:41 +0300)
commit68c5d80ee5381db9ea20e2ef247153e300fe837c
treecfa29b25d2eb2a9239e4c280fd0d604db8f5995b
parente4ca695700b996f1347662a2666881fdc09ea703
QUIC: fixed ngx_http_test_reading() for QUIC streams.

Previously this function generated an error trying to figure out if client shut
down the write end of the connection.  The reason for this error was that a
QUIC stream has no socket descriptor.  However checking for eof is not the
right thing to do for an HTTP/3 QUIC stream since HTTP/3 clients are expected
to shut down the write end of the stream after sending the request.

Now the function handles QUIC streams separately.  It checks if c->read->error
is set.  The error flags for c->read and c->write are now set for all streams
when closing the QUIC connection instead of setting the pending_eof flag.
src/event/ngx_event_quic.c
src/http/ngx_http_request.c