Re: [libmicrohttpd] socket_context not set (libmicrohttpd-0.9.50)

2017-06-01 Thread Christian Grothoff
Sorry, was mistaken, the API does already exist as it should. The argument you need to pass is aptly named: MHD_CONNECTION_INFO_SOCKET_CONTEXT. -Christian On 06/01/2017 05:33 PM, Christian Grothoff wrote: > Hi Miguel, > > There are two contexts, the "socket context" and the "request context". >

Re: [libmicrohttpd] socket_context not set (libmicrohttpd-0.9.50)

2017-06-01 Thread Christian Grothoff
Hi Miguel, There are two contexts, the "socket context" and the "request context". The access handler is given the "request context", to get the socket context there we would have to extend the MHD_get_connection_info() API to allow you to get it during the access handler. I guess that's an overs

[libmicrohttpd] socket_context not set (libmicrohttpd-0.9.50)

2017-06-01 Thread Miguel Sancho
Hi, finding the following issue (libmicrohttpd-0.9.50), I would like to check whether this is already known. Seems that socket_context is not set in #MHD_AccessHandlerCallback. - In #MHD_NotifyConnectionCallback (STARTED), **socket_context object is created - In #MHD_AccessHandlerCallbac