Re: [libmicrohttpd] HEAD and Keep-Alive Problems

2015-06-25 Thread Cristian KLEIN
On 25.06.2015 21:11, Christian Grothoff wrote: > Hi! > > The 'correct' answer is that you should not even have to treat HEAD/GET > any different in your application logic, by design MHD should just > notice it's a HEAD request and not send the body. > > I just modified 'src/examples/demo.c' to su

Re: [libmicrohttpd] HEAD and Keep-Alive Problems

2015-06-25 Thread Christian Grothoff
Hi! The 'correct' answer is that you should not even have to treat HEAD/GET any different in your application logic, by design MHD should just notice it's a HEAD request and not send the body. I just modified 'src/examples/demo.c' to support HEAD requests (basically previously it checked for meth

Re: [libmicrohttpd] MHD_suspend_connection()

2015-06-25 Thread Christian Grothoff
On 06/25/2015 02:28 PM, Markus Doppelbauer wrote: > Hello, > > Is it allowed/safe to suspend a connection via > "MHD_suspend_connection()" inside a > "MHD_ContentReaderCallback()" handler? Yes. > I am asking because > a) the docs say: > "The only safe time to suspend a connection is from

[libmicrohttpd] MHD_suspend_connection()

2015-06-25 Thread Markus Doppelbauer
Hello, Is it allowed/safe to suspend a connection via "MHD_suspend_connection()" inside a "MHD_ContentReaderCallback()" handler? I am asking because a) the docs say: "The only safe time to suspend a connection is from the MHD_AccessHandlerCallback." b) the "MHD_ContentReaderCallback()" d