Re: Memory growth when using SOUP_ENCODING_CHUNKED



Hi Mike!

On Mon, Jan 26, 2009 at 5:37 AM, W. Michael Petullo <mike flyn org> wrote:
:
> Right now, my code increases its memory usage drastically as a file is
> being sent to a client.
>
> My understanding is that soup_message_body_append () appends to a buffer
> that will be sent to the client as soon as possible after
> soup_server_unpause_message () is called. Hence, the buffer will not grow
> too big as it is continously being sent and then free'ed (i.e., the buffer
> does wait to aquire the entire contents of a large file before being sent
> and free'ed).
>
> Is this how it is supposed to work?

   soup_message_body_set_accumulate () is what you are looking for i think.

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]