memory consumption proxying a comet server

Maxim Dounin mdounin at
Mon May 31 03:41:59 MSD 2010


On Sat, May 29, 2010 at 08:34:53PM +0200, Arrigo Zanette wrote:

> Hi,
> when proxying a comet server the http write filter module keeps
> allocating few bytes for each chunk of data coming from the comet
> server. These data are freed only when the request terminates, that is
> possibly never.

It's not write filter which allocates memory, and it's not it's 
business to free it.

> There is also a forum thread (,73923)
>  that describes the problem very well.
> Below I report a workaround that seems working for my application.
> Basically, I guess if I can free the allocated memory and free it, by
> rewinding the position in the pool.

It's nice it works for you, but obviously it's not something that 
may be committed.

Maxim Dounin

More information about the nginx-devel mailing list