Hi,
I'm trying to understand how the shared memory pool works inside the Nginx.
To do that, I made a very small module which create a shared memory zone
with 2097152 bytes,
and allocating and freeing blocks of memory, starting from 0 and increasing
by 1kb until the allocation fails.
The strange p
Hello!
On Thu, Jun 27, 2013 at 11:20:56PM +0400, Dmitry Popov wrote:
> Consider a case when we've just read chunk size (but nothing else):
> case sw_chunk_size:
> ctx->length = 2 /* LF LF */
> + (ctx->size ? ctx->size + 4 /* LF "0" LF LF */ : 0);
> break;
details: http://hg.nginx.org/nginx/rev/b66ec10e901a
branches:
changeset: 5256:b66ec10e901a
user: Maxim Dounin
date: Fri Jun 28 13:55:05 2013 +0400
description:
Fixed ngx_http_parse_chunked() minimal length calculation.
Minimal data length we expect for further calls was calculated i
Hello!
On Fri, Jun 28, 2013 at 01:25:20PM +0530, Pranay Kanwar wrote:
> Hi,
>
> What is the correct way to get request body in a log phase handler module ?
>
> The usual method of ngx_http_read_client_request_body via a handler doesn't
> work,
> the r->request_body->bufs is always NULL.
>
> Th
Hi,
What is the correct way to get request body in a log phase handler module ?
The usual method of ngx_http_read_client_request_body via a handler doesn't
work,
the r->request_body->bufs is always NULL.
The handler works fine in other phases (for example the pre access phase).
-pk