libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] How to avoid the "Internal application error, closin


From: Christian Grothoff
Subject: Re: [libmicrohttpd] How to avoid the "Internal application error, closing connection" message when AHC = NO?
Date: Mon, 14 Mar 2016 14:34:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

You could filter those in your custom logger, which you can set using
MHD_OPTION_EXTERNAL_LOGGER.

-Christian

On 03/14/2016 02:11 PM, silvioprog wrote:
> Hello,
> 
> Sometimes, an application needs to refuse the client connection, something
> like this:
> 
> static int ahc_echo(void *cls, ...) {
>     if (!logged())
>         return MHD_NO;
> }
> 
> However, when I pass the MHD_NO to the AHC, I always get the "Internal
> application error, closing connection" in my log.
> 
> So, is there some way to do it without log this message?
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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