libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] upgraded connections remain suspended when using MHD_USE


From: Dom F
Subject: [libmicrohttpd] upgraded connections remain suspended when using MHD_USE_THREAD_PER_CONNECTION
Date: Tue, 9 May 2017 12:12:19 +0100
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

Hello,

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:
MHD_upgrade_action(urh, MHD_UPGRADE_ACTION_CLOSE)

This leaves urh->was_closed and urh->clean_ready as true and returns MHD_YES.

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?

Dom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]