[libmicrohttpd] Sleeping a request thread

2017-05-18 Thread Miguel Sancho
Hi, using the MHD_USE_THREAD_PER_CONNECTION mode, are there any issues in "sleeping" the request thread some seconds waiting for response? any known drawback in MHD? for example to wait 4s: usleep(400) MHD_queue_response (..) Thanks

Re: [libmicrohttpd] Sleeping a request thread

2017-05-18 Thread Christian Grothoff
Hi, Sleeping in THREAD_PER_CONNECTION mode is fine --- if you want to really just throttle the response generation and basically create latency. -Christian On 05/19/2017 12:22 AM, Miguel Sancho wrote: > Hi, > using the MHD_USE_THREAD_PER_CONNECTION mode, > are there any issues in "sleeping" the