Mercurial > hg > nginx
comparison src/http/ngx_http_request.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 | 532fe796b0e2 |
children | 2885cd81adb3 |
comparison
equal
deleted
inserted
replaced
8528:97da6521657c | 8529:eaea7dac3292 |
---|---|
2817 ngx_http_close_request(r, 0); | 2817 ngx_http_close_request(r, 0); |
2818 return; | 2818 return; |
2819 } | 2819 } |
2820 #endif | 2820 #endif |
2821 | 2821 |
2822 #if (NGX_HTTP_QUIC) | |
2823 if (r->connection->qs) { | |
2824 ngx_http_close_request(r, 0); | |
2825 return; | |
2826 } | |
2827 #endif | |
2828 | |
2822 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | 2829 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
2823 | 2830 |
2824 if (r->main->count != 1) { | 2831 if (r->main->count != 1) { |
2825 | 2832 |
2826 if (r->discard_body) { | 2833 if (r->discard_body) { |