Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 8510:532fe796b0e2 quic
Merged with the default branch.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 18 Aug 2020 16:22:00 +0300 |
parents | b66a2a041d7e 45764bca69b0 |
children | eaea7dac3292 |
comparison
equal
deleted
inserted
replaced
8509:bce9e9643444 | 8510:532fe796b0e2 |
---|---|
1721 } | 1721 } |
1722 | 1722 |
1723 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 1723 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
1724 "http large header copy: %uz", r->header_in->pos - old); | 1724 "http large header copy: %uz", r->header_in->pos - old); |
1725 | 1725 |
1726 if (r->header_in->pos - old > b->end - b->start) { | |
1727 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, | |
1728 "too large header to copy"); | |
1729 return NGX_ERROR; | |
1730 } | |
1731 | |
1726 new = b->start; | 1732 new = b->start; |
1727 | 1733 |
1728 ngx_memcpy(new, old, r->header_in->pos - old); | 1734 ngx_memcpy(new, old, r->header_in->pos - old); |
1729 | 1735 |
1730 b->pos = new + (r->header_in->pos - old); | 1736 b->pos = new + (r->header_in->pos - old); |
3118 | 3124 |
3119 if (err) { | 3125 if (err) { |
3120 rev->error = 1; | 3126 rev->error = 1; |
3121 } | 3127 } |
3122 | 3128 |
3129 #if (NGX_HTTP_SSL) | |
3130 if (c->ssl) { | |
3131 c->ssl->no_send_shutdown = 1; | |
3132 } | |
3133 #endif | |
3134 | |
3123 ngx_log_error(NGX_LOG_INFO, c->log, err, | 3135 ngx_log_error(NGX_LOG_INFO, c->log, err, |
3124 "client prematurely closed connection"); | 3136 "client prematurely closed connection"); |
3125 | 3137 |
3126 ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST); | 3138 ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST); |
3127 } | 3139 } |