mirror of
https://github.com/nginx/nginx.git
synced 2026-05-28 04:12:47 -04:00
Merge b6bf8d2076 into d44205284f
This commit is contained in:
commit
7b88322391
1 changed files with 7 additions and 1 deletions
|
|
@ -4009,7 +4009,9 @@ ngx_http_v2_read_request_body(ngx_http_request_t *r)
|
|||
|
||||
if (rb->buf == NULL) {
|
||||
stream->skip_data = 1;
|
||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"http2 cannot allocate request body buffer");
|
||||
return NGX_HTTP_INSUFFICIENT_STORAGE;
|
||||
}
|
||||
|
||||
buf = stream->preread;
|
||||
|
|
@ -4064,6 +4066,8 @@ ngx_http_v2_read_request_body(ngx_http_request_t *r)
|
|||
== NGX_ERROR)
|
||||
{
|
||||
stream->skip_data = 1;
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"http2 failed to send WINDOW_UPDATE");
|
||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
||||
|
|
@ -4072,6 +4076,8 @@ ngx_http_v2_read_request_body(ngx_http_request_t *r)
|
|||
if (!h2c->blocked) {
|
||||
if (ngx_http_v2_send_output_queue(h2c) == NGX_ERROR) {
|
||||
stream->skip_data = 1;
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"http2 failed to send output queue");
|
||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue