Skip to content

Commit

Permalink
Changes with nginx 1.4.6 04 Mar 2014
Browse files Browse the repository at this point in the history
*) Bugfix: the "client_max_body_size" directive might not work when
reading a request body using chunked transfer encoding; the bug had
appeared in 1.3.9.
Thanks to Lucas Molas.

*) Bugfix: a segmentation fault might occur in a worker process when
proxying WebSocket connections.
  • Loading branch information
nginx authored and kolbyjack committed Mar 4, 2014
1 parent a4c36cb commit 483f0cd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
11 changes: 11 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@

Changes with nginx 1.4.6 04 Mar 2014

*) Bugfix: the "client_max_body_size" directive might not work when
reading a request body using chunked transfer encoding; the bug had
appeared in 1.3.9.
Thanks to Lucas Molas.

*) Bugfix: a segmentation fault might occur in a worker process when
proxying WebSocket connections.


Changes with nginx 1.4.5 11 Feb 2014

*) Bugfix: the $ssl_session_id variable contained full session
Expand Down
11 changes: 11 additions & 0 deletions CHANGES.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@

Изменения в nginx 1.4.6 04.03.2014

*) Исправление: директива client_max_body_size могла не работать при
чтении тела запроса с использованием chunked transfer encoding;
ошибка появилась в 1.3.9.
Спасибо Lucas Molas.

*) Исправление: при проксировании WebSocket-соединений в рабочем
процессе мог произойти segmentation fault.


Изменения в nginx 1.4.5 11.02.2014

*) Исправление: переменная $ssl_session_id содержала всю сессию в
Expand Down
4 changes: 2 additions & 2 deletions src/core/nginx.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#define _NGINX_H_INCLUDED_


#define nginx_version 1004005
#define NGINX_VERSION "1.4.5"
#define nginx_version 1004006
#define NGINX_VERSION "1.4.6"
#define NGINX_VER "nginx/" NGINX_VERSION

#define NGINX_VAR "NGINX"
Expand Down
8 changes: 4 additions & 4 deletions src/http/ngx_http_request_body.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,13 +953,13 @@ ngx_http_request_body_chunked_filter(ngx_http_request_t *r, ngx_chain_t *in)

if (clcf->client_max_body_size
&& clcf->client_max_body_size
< r->headers_in.content_length_n + rb->chunked->size)
- r->headers_in.content_length_n < rb->chunked->size)
{
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"client intended to send too large chunked "
"body: %O bytes",
r->headers_in.content_length_n
+ rb->chunked->size);
"body: %O+%O bytes",
r->headers_in.content_length_n,
rb->chunked->size);

r->lingering_close = 1;

Expand Down
2 changes: 2 additions & 0 deletions src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,9 @@ ngx_http_upstream_upgrade(ngx_http_request_t *r, ngx_http_upstream_t *u)
if (u->peer.connection->read->ready
|| u->buffer.pos != u->buffer.last)
{
ngx_post_event(c->read, &ngx_posted_events);
ngx_http_upstream_process_upgraded(r, 1, 1);
return;
}

ngx_http_upstream_process_upgraded(r, 0, 1);
Expand Down

0 comments on commit 483f0cd

Please sign in to comment.