Mercurial > hg > nginx
comparison src/http/ngx_http_request_body.c @ 8529:eaea7dac3292 quic
HTTP/3: drop the unwanted remainder of the request.
As per HTTP/3 draft 29, section 4.1:
When the server does not need to receive the remainder of the request,
it MAY abort reading the request stream, send a complete response, and
cleanly close the sending part of the stream.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 25 Aug 2020 12:45:21 +0300 |
parents | 357b8afe915e |
children | 9ffef6054abf |
comparison
equal
deleted
inserted
replaced
8528:97da6521657c | 8529:eaea7dac3292 |
---|---|
573 } | 573 } |
574 | 574 |
575 #if (NGX_HTTP_V2) | 575 #if (NGX_HTTP_V2) |
576 if (r->stream) { | 576 if (r->stream) { |
577 r->stream->skip_data = 1; | 577 r->stream->skip_data = 1; |
578 return NGX_OK; | |
579 } | |
580 #endif | |
581 | |
582 #if (NGX_HTTP_QUIC) | |
583 if (r->connection->qs) { | |
578 return NGX_OK; | 584 return NGX_OK; |
579 } | 585 } |
580 #endif | 586 #endif |
581 | 587 |
582 if (ngx_http_test_expect(r) != NGX_OK) { | 588 if (ngx_http_test_expect(r) != NGX_OK) { |