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?
Miguel