libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] MHD_suspend_connection()


From: Christian Grothoff
Subject: Re: [libmicrohttpd] MHD_suspend_connection()
Date: Thu, 25 Jun 2015 15:00:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

On 06/25/2015 02:28 PM, Markus Doppelbauer wrote:
> Hello,
> 
> Is it allowed/safe to suspend a connection via
> "MHD_suspend_connection()" inside a
> "MHD_ContentReaderCallback()" handler?

Yes.


> I am asking because
> a) the docs say:
>       "The only safe time to suspend a connection is from the
> MHD_AccessHandlerCallback."

We should clarify that.

> b) the "MHD_ContentReaderCallback()" does not have a "connection" parameter.

Well, you'll need to pass/get it via the 'void *cls' somehow...

-Christian

Attachment: 0xE29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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