[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] upgraded connections remain suspended when using MHD_USE
[libmicrohttpd] upgraded connections remain suspended when using MHD_USE_THREAD_PER_CONNECTION
Tue, 9 May 2017 12:12:19 +0100
Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
I start the daemon with these flags:
MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | MHD_USE_POLL |
MHD_USE_ITC | MHD_USE_INTERNAL_POLLING_THREAD | MHD_ALLOW_UPGRADE
When I'm finished with an upgraded connection I call:
This leaves urh->was_closed and urh->clean_ready as true and returns
MHD_upgrade_action() also calls MHD_resume_connection() but
resume_suspended_connections() in daemon.c is never called.
So upgraded connections add to daemon->suspended_connections_tail and
daemon->connections increases until it hits daemon->connection_limit
then my application starts reporting this:
Server reached connection limit. Closing inbound connection.
Anyone else seeing the same?
- [libmicrohttpd] upgraded connections remain suspended when using MHD_USE_THREAD_PER_CONNECTION,
Dom F <=