libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] MHD_queue_response failing


From: Peter Ross
Subject: Re: [libmicrohttpd] MHD_queue_response failing
Date: Sun, 18 Sep 2011 21:17:30 +1000
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Sep 18, 2011 at 08:03:00AM +0200, Christian Grothoff wrote:
> Dear Peter,
> 
> I suspect you're simply queueing your response too early.  The API
> may not be 100%-intuitive here: if you have an upload (and did not
> replace the 100-CONTINUE with an error), you need to wait for MHD to
> call you with an '*upload_size' of zero before giving your response.
> From what you write about the state we're at, your code does not do
> this.

Thanks for the speedy response. Your suggestion works! Note that in my
example, AccessHandlder is called *three* times per POST request. The
first time upload_data_size is zero, second time its non-zero, and then
finally its zero again.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)

Attachment: signature.asc
Description: Digital signature


reply via email to

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