[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Connection notifications
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Connection notifications |
Date: |
Tue, 31 Mar 2015 10:40:48 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 |
Hi Robert,
This is close to something I had wanted to have for a while for
GNUnet, but not quite right:
The patch was only working for multithreaded apps, so I adjusted it
to cover other threading models, fixed a merge issue and added the
ability to associate a void* with the callbacks (and obtain it via
MHD connection info). And I updated the manual & ChangeLog.
Now I think it can be included ;-). => SVN 35488.
Happy hacking!
Christian
On 03/28/2015 01:20 AM, Robert Groenenberg wrote:
> Hi,
>
> I am using libmicrohttpd in a multithreaded application in the
> thread-per-connection mode. In order to maintain statistics and such on
> the various clients, the application should be notified about
> connections being started and stopped. Something like the
> MHD_OPTION_NOTIFY_COMPLETED for requests, but then for connections. As
> far as I could find libmicrohttpd does not (yet) provide that functionality.
>
> Attached is a patch that does add this functionality by registering a
> connection notification callback function: MHD_OPTION_NOTIFY_CONNECTION
> (inspired by the MHD_OPTION_NOTIFY_COMPLETED option).
>
> Could this be included in libmicrohttpd?
>
> Cheers,
> Robert
>
0xE29FC3CC.asc
Description: application/pgp-keys