[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Hanging connections
From: |
Phil Rosenberg |
Subject: |
Re: [libmicrohttpd] Hanging connections |
Date: |
Tue, 3 Nov 2015 22:02:02 +0000 |
Hi Ken
Thanks for the advice. As you say, my callback is not being called AT
ALL. Here is my start call
m_daemon = MHD_start_daemon(
MHD_USE_THREAD_PER_CONNECTION,
port,
NULL,
NULL,
&HttpDaemon::connectionCallback,
this,
MHD_OPTION_NOTIFY_COMPLETED, &HttpDaemon::completeCallback, NULL,
//variables which allow post to be processed
MHD_OPTION_END);
Since posting I have tried MHD_USE_SELECT_INTERNALLY and this seems to
be working fine. Processing each request is very fast so the multi
threading I guess isn't needed.
You may notice above that my callback is actually a static method of a
C++ class, but as a static method is equivalent to a regular function
I don't believe this is a problem and it has never been a problem for
other libraries where I have used callbacks (e.g. libCURL).
I had the same isuue with GET too.
I had seen the info about being called twice and (at least I believe )
I am dealing with that.
I will have a look at firebug and try to work things out from that end
when I get a chance and I will see if I can create a minimal sample
too.
Thanks for all the ideas. It's always great to find what seems like a
keen and active group at the other end of an email list. Now that I am
running with select internally MHD seems perfect for my needs.
Phil