libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Blocking read and performance


From: Adam Almos Homolya
Subject: [libmicrohttpd] Blocking read and performance
Date: Wed, 23 Oct 2013 22:19:14 +0200

Dear maintainers/users,

At my company we would like to use libmicrohttpd as a web server frontend for an application. For now, I am playing around with the library for a couple of days, and I would like to ask a few questions that seem to be unanswered for me.

I see basically 2 ways of creating responses:
- create response from some kind of buffer
- from a reader callback

I would like to stream large amount of data that is being read asynchronously so that I can't ensure that when libmicrohttpd is calling the reader callback any byte is available for read without blocking. The documentation says returning zero from the callback will result in a busy wait which is not an option. Can you give any advise how to work around this problem?

My second question is when using external select, can I somehow run libmicrohttpd daemon in a threadpool? If yes are there any examples out there for that?
 
My last question is rather general: Is the library viable for streaming large amount of data for relatively big number of connections with a web service?

Thank you very much.
Kind regards,

--
Ádám Álmos Homolya 
Software Engineer
LogMeIn Inc.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]