|Subject:||Re: [libmicrohttpd] Sleeping a request thread|
|Date:||Wed, 24 May 2017 19:47:18 +0200|
Christian, thanks a lot for your answer,here are more details, maybe you have seen something similar before?I am seeing some issue with my process when I sleep the MHD request thread in THREAD_PER_CONNECTION mode
- my process includes other threads reading from sockets which have nothing to do with MHD
- seems that when I "sleep" the MHD request thread, this has an impact in other threads of the process, the messages get somehow "stuck" until the sleep in the MHD request thread finishes
- the effect is the same, no matter if I execute a sleep() or a "long" while() (lasting for example 4s)
May the MHD thread sleep have an impact in other threads not related to MHD, any approach to work-around this?
Miguel2017-05-19 0:22 GMT+02:00 Miguel Sancho <address@hidden>:usleep(4000000)for example to wait 4s: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?
|[Prev in Thread]||Current Thread||[Next in Thread]|