[Top][All Lists]

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

Re: [libmicrohttpd] Permission Denied Error

From: Evgeny Grin
Subject: Re: [libmicrohttpd] Permission Denied Error
Date: Thu, 4 Aug 2016 12:56:27 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

It could relate to Windows Firewall or some other system protection.
You can create socket by yourself, bind it, start listening and provide
it as parameter with MHD_OPTION_LISTEN_SOCKET for MHD_start_daemon(). In
that case you can get more intermediate error states.

Best Wishes,
Evgeny Grin

On 04.08.2016 1:14, Phil Rosenberg wrote:
> vHi
> I have a problem with some code I have written using libmicrohttpd.
> The software is run on windows and compiled with visual studio 2015,
> as is my copy of libmicrohttpd.
> The issue only occurs for some of my users, however, if I step through
> the code it seems that the bind call is failing. Stepping through the
> error reporting code the error reported by Windows is WSAEACCES, which
> causes a "Permission denied" error to be reported by MHD.
> I don't really understand the information at
> Is it possible anyone here could shed some light on the issue. It
> seems that when someone comes across this issue the windows firewall
> never asks the user if they want to allow the application to be
> unblocked - I don't know if that helps. My MHD_start_daemon call looks
> like
> m_daemon = MHD_start_daemon(
>   port,
>   NULL,
>   NULL,
>   &HttpDaemon::connectionCallback,
>   this,
>   MHD_OPTION_NOTIFY_COMPLETED, &HttpDaemon::completeCallback, NULL,
> //variables which allow post to be processed
>   MHD_OPTION_EXTERNAL_LOGGER, &HttpDaemon::parseMessageVa, this,
> Any suggestions?
> Phil

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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