[libmicrohttpd] Busy waiting up to one second using connection timeout

2021-08-11 Thread Irion, Alexander
Hello! I discovered a problem with closing connections, when MHD_OPTION_CONNECTION_TIMEOUT is used. When I set the timeout option to 3 seconds and connect with a browser, I get a timeout value from MHD_get_timeout() of 3000 ms returned. I then sleep the desired time and call MHD_run again(). T

Re: [libmicrohttpd] Busy waiting up to one second using connection timeout

2021-08-12 Thread Irion, Alexander
f the internal MHD timer. I'll handle it. -- Evgeny On 11.08.2021 23:39, Christian Grothoff wrote: > Thanks for the detailed report, the patch looks good as-is, applied to > master as > > f5d387df7e7fb8de1a5dd0739ddb83a8b19fe64b > > Happy hacking! > > Christian > > On

[libmicrohttpd] Fix: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header

2022-06-15 Thread Irion, Alexander
Please, see the attached small fix: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header MHD_create_response_for_upgrade() already adds the MHD_HTTP_HEADER_CONNECTION response header, so the additional MHD_add_response_header is wrong. In our application it caused, that on a Apple