libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Processing large binary data in chunks?


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Processing large binary data in chunks?
Date: Wed, 23 Oct 2013 19:28:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9

This is not possible right now.  I agree that we should fix this,
I'll try to find the time to implement this soon. (We will need a
new API call to suspend/resume processing of a connection.)

Happy hacking!

Christian

On 10/23/2013 04:27 PM, Jared Cantwell wrote:
> Is it possible to use libmicrohttpd to transfer large amounts of binary
> data (e.g. 10GB) incrementally using a thread pool model?  By incrementally
> I mean that after we receive 10MB we'd like to process the 10MB internally
> before allowing more data to be transferred to the web server-- we don't
> have enough memory to receive the whole 10GB first.  Using
> MHD_USE_THREAD_PER_CONNECTION we can achieve this by blocking until we
> process each 10MB chunk.  However, for scaling reasons we'd prefer to use
> the thread pool model, but I can't find a way to "block" acknowledgement of
> processing some data without synchronously blocking one of the threads in
> the pool.  It looks like the POST request handlers are close to what I
> need, except my data is not form-encoded.
> 
> Any suggestions would be greatly appreciated.
> 
> Thanks,
> Jared
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]