Discussion:
[libmicrohttpd] Does MHD_CONNECTION_OPTION_TIMEOUT works with MHD_create_response_from_callback ?
Nicolas Mora
2018-10-03 00:44:22 UTC
Permalink
Hello,

I'd like my webservice to disconnect lost connections by force and it
looks like MHD_CONNECTION_OPTION_TIMEOUT should do the trick but in my
tests it doesn't work.

Does this option work with stream responses using
MHD_create_response_from_callback?

If not is there another way?

Thanks
Nicolas Mora
2018-10-07 14:51:41 UTC
Permalink
Hello,
Post by Nicolas Mora
Does this option work with stream responses using
MHD_create_response_from_callback?
According to my tests, setting a connection timeout on a response
created with MHD_create_response_from_callback has no effect, you must
use MHD_OPTION_CONNECTION_TIMEOUT instead.

/Nicolas

Loading...