[libmicrohttpd] libmicrohttpd+http2

2018-09-05 Thread Santos Das
Hi, Is there any stable opensource version which has added HTTP2.0 support to libmicrohttpd ? I came across this, but it is pre-beta stage I suppose. https://github.com/maru/libmicrohttpd-http2 Any help would be appreciated. thanks: santos

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Christian Grothoff
Dear Kunal, Yes, you can do all this, including raw epoll, no threads and storing connection details in '*cls'. I just don't have an example that does all this at once ;-) Happy hacking! Christian On 08/27/2018 11:15 AM, Kunal Ekawde wrote: > Hi, > > With ref to: > https://lists.gnu.org/archi

Re: [libmicrohttpd] Question on Async support

2018-09-05 Thread Christian Grothoff
Hi! There is no official support for HTTP2 at this time, and there is no timeline for adding support either. The easiest way to get HTTP2 support would be to run your MHD behind a reverse proxy (Apache/nginx) that supports HTTP2. Happy hacking! Christian On 08/24/2018 09:24 PM, Santos Das wrot

Re: [libmicrohttpd] [possible feature request?] Loading key/cert from file [gnutls_certificate_set_x509_key_file2()]

2018-09-05 Thread Christian Grothoff
Hi Silvio, I don't like the proposed feature very much, it's something an application developer can reasonably easily write themselves, it would introduce a dependency on file system operations to MHD, and it would include a lot of different possible error types (file not found, access permissions

Re: [libmicrohttpd] Web Socket disconnect behaviour

2018-09-05 Thread Christian Grothoff
On 9/3/18 6:09 PM, Paul Topley wrote: > > This all works great, but there is one particular situation im not sure > how to handle.  When there is an unexpected disconnect in the socket > between client and server, which isnt instigated by either (lets say the > server crashes, ethernet disconnect

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Robert D Kocisko
Christian / Kunal, Doesn't the suspend_resume_epoll.c example cover this exact case? - Bob On Wed, Sep 5, 2018 at 5:35 AM Christian Grothoff wrote: > Dear Kunal, > > Yes, you can do all this, including raw epoll, no threads and storing > connection details in '*cls'. I just don't have an exam

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Kunal Ekawde
Thanks Christian, yes I got it done :) On Wed, Sep 5, 2018 at 3:05 PM Christian Grothoff wrote: > Dear Kunal, > > Yes, you can do all this, including raw epoll, no threads and storing > connection details in '*cls'. I just don't have an example that does > all this at once ;-) > > Happy hacking

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Kunal Ekawde
Hi Christian, Can you please confirm if suspend/resume wont use pipe (lfor IPC)? As in manual it's mentioned as: "Enables using MHD_suspend_connection and MHD_resume_connection, as performing these calls requires some additional pipes to be created, and code not using these calls should not pay th

Re: [libmicrohttpd] Aync handling & message response

2018-09-05 Thread Kunal Ekawde
Can you please provide some information on 'MHD_USE_TURBO' as I couldn't find any info in manual. Thanks, Kunal On Thu, Sep 6, 2018 at 11:41 AM Kunal Ekawde wrote: > Hi Christian, > > Can you please confirm if suspend/resume wont use pipe (lfor IPC)? > As in manual it's mentioned as: > "Enables