]> git.kaiwu.me - nginx.git/commitdiff
Merged with the default branch.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 18 Aug 2020 13:22:00 +0000 (16:22 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 18 Aug 2020 13:22:00 +0000 (16:22 +0300)
1  2 
src/core/ngx_connection.c
src/event/ngx_event_openssl.c
src/http/ngx_http_request.c
src/http/ngx_http_request_body.c

Simple merge
index dc0861ce99589cd2a029758952e84f9db155ba60,f387c720dfa923017d4c29574b57d751e63214b3..8077f40a97e109fd353a5266ec2d4981f8fac48f
@@@ -2774,16 -2774,10 +2774,17 @@@ ngx_ssl_free_buffer(ngx_connection_t *c
  ngx_int_t
  ngx_ssl_shutdown(ngx_connection_t *c)
  {
-     int        n, sslerr, mode;
-     ngx_err_t  err;
+     int         n, sslerr, mode;
+     ngx_err_t   err;
+     ngx_uint_t  tries;
  
 +#if (NGX_QUIC)
 +    if (c->qs) {
 +        /* QUIC streams inherit SSL object */
 +        return NGX_OK;
 +    }
 +#endif
 +
      ngx_ssl_ocsp_cleanup(c);
  
      if (SSL_in_init(c->ssl->connection)) {
Simple merge
index 568f11f02ee3a896c4befa7e130d34b6ecb37a47,71d7e9ab873cfb9abe45aed305652dbc7e5ea3fb..204253ca24ed53d09a61c5db64ee8397aa69d5e9
@@@ -958,17 -1016,10 +1025,16 @@@ ngx_http_request_body_chunked_filter(ng
              return NGX_HTTP_INTERNAL_SERVER_ERROR;
          }
  
+         cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
          r->headers_in.content_length_n = 0;
-         } else
- #endif
-         {
-             rb->rest = 3;
+         rb->rest = cscf->large_client_header_buffers.size;
 +
 +#if (NGX_HTTP_V3)
 +        if (r->http_version == NGX_HTTP_VERSION_30) {
 +            rb->rest = 1;
 +        }
++#endif
      }
  
      out = NULL;