I don't know anything about using external loggers with MHD and this isn't
really any of my business, but filtering log messages based on the string
seems like a bad idea. That string could change in future releases (plus I
guess you're doing extra string comparisons, but I doubt that amounts to
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, ...) {
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.