[libmicrohttpd] Question on Async support

2018-08-23 Thread Santos Das
Hi, Can anyone please confirm if libmicrohttpd supports the Async handling? Also, any information on the performance of libmicrohttps will be useful. thanks, santos

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread Christian Grothoff
On 08/23/2018 06:21 PM, Santos Das wrote: > Hi, > > Can anyone please confirm if libmicrohttpd supports the Async handling? Yes, it supports asynchronous processing. > Also, any information on the performance of libmicrohttps will be useful. Let's just say if used properly, it will never be any

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread Santos Das
Hi, Thank you for the quick reply. I have one more question, please help in clarifying - Can "libmicrohttpd" run as a part of the application event loop or is it *mandatory *for the "libmicrohttpd" to have its own event loop? thanks, santos On Thu, Aug 23, 2018 at 11:58 PM, Christian Grothoff

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread silvioprog
Hello Santos. Yes, you can use your own main loop. Please see: "*The fourth threading model (used when no specific flag is given), uses no threads. Instead, the main application must (periodically) request file descriptor sets from MHD, perform a select call and then call MHD_run. MHD_run will th

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread Christian Grothoff
On 08/23/2018 08:36 PM, Santos Das wrote: > Hi, > > Thank you for the quick reply. I have one more question, please help in > clarifying - > > Can "libmicrohttpd" run as a part of the application event loop or is it > *_mandatory _*for the  "libmicrohttpd"  to have its own event loop? It can run

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread Santos Das
Hi, Thanks a lot. Is there any significant performance impact when it runs in this mode ? Has anyone compared its performance against "mongoose " ? I''m evaluating a http library for my C++ based application microservices . I am evaluating libraries that can provide our C++ workers with native

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread silvioprog
You're welcome. ☺ On Thu, Aug 23, 2018 at 4:09 PM Santos Das wrote: > Hi, > > Thanks a lot. Is there any significant performance impact when it runs in > this mode ? > I'm using the built-in MHD main loop through a recent released project called Sagui Project

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread Christian Grothoff
On 08/23/2018 09:09 PM, Santos Das wrote: > Hi, > > Thanks a lot. Is there any significant performance impact when it runs > in this mode ? Not inherently, but you don't get the thread-pool feature that way (at least not without quite a bit of work by you!). My real high-performance setups use t

Re: [libmicrohttpd] Question on Async support

2018-08-23 Thread silvioprog
Hello Christian, On Thu, Aug 23, 2018 at 8:58 PM Christian Grothoff wrote: [...] > Well, we have a list of alternatives on the MHD web site. But naturally > few people on this list would think they are as useful for _their_ > usecases. ;-) I would like to add my library to the page "Projects t