[libmicrohttpd] The resuming of a single connection and daemon not coordinate

2015-05-30 Thread 钱在晨(二败)
Hi,  Is there any situation that in the function resume_suspended_connections(), connection->resuming and connection->suspended are MHD_YES,  but daemon->resuming is MHD_NO? My program uses one thread to produce data and a callback function in another thread (in the threadpool of libmicrohttpd)

[libmicrohttpd] 答复:The resuming of a single connection and daemon not coordinate

2015-05-30 Thread 钱在晨(二败)
continued... I think I find the reason.  In the function MHD_resume_connection(), daemon.c: line 1601   It requires the MHD_USE_THREAD_PER_CONNECTION option to lock the cleanup_connection_mutex, but int my program, I use the options like  "MHD_USE_SELECT_INTERNALLY | MHD_USE_POLL | MHD_USE_DEBUG|