The problem was in my test cases, because it tries to mock MHD. Basically I
just had to create fake instances like "struct MHD_Connection *con =
sg_alloc(256)" and fixed the tests:
https://github.com/risoflora/libsagui/commit/bd8304ebe439095312d7232aec5f88ad36a20157
On Tue, Feb 27, 2024 at 1:58 PM
Hi Evgeny,
unsigned int daemon_flags = MHD_USE_INTERNAL_POLLING_THREAD |
MHD_USE_POLL | MHD_ALLOW_SUSPEND_RESUME | MHD_USE_ERROR_LOGResponse is
generated in a dedicated thread.I will try to write a testcase.
Best wishes
Am Dienstag, dem 27.02.2024 um 18:19 +0100 schrieb Evgeny Grin:
> Hi Markus,
Hi Markus,
Can you share a larger piece of code or give more details, like used
mode (internal polling or external polling), polling function, other
relevant information?
--
Evgeny
27-Feb-2024 17:58 (UTC+0100), Markus Doppelbauer via libmicrohttpd wrote:
What was your issue? How did you fix
What was your issue? How did you fix it?
I am getting "Assertion failed" from "connection.c:6864": case
MHD_CONNECTION_CHUNKED_BODY_UNREADY:
mhd_assert (0);
This happens if I create a response from callback, e.g.:
struct MHD_Response *response = MHD_create_response_from_callback(
MHD_SIZE
Problem fixed! \o/
I have a couple of test cases that call some MHD functions internally, but
after creating fake MHD_Connections to pass to the functions instead of
NULL the problem was fixed.
Thanks a lot guys!
On Mon, Feb 26, 2024 at 5:41 PM silvioprog wrote:
> Seems like it will be hard to
Hey Christian. =)
Yes sure, I'll try to reproduce the problem and provide all the logs.
On Mon, Feb 26, 2024 at 4:23 PM Christian Grothoff
wrote:
> Hi Silvio,
>
> Well, we didn't try to break anything with the update, so you shouldn't
> have to change anything on your side either. Can you send
Hi Silvio,
Well, we didn't try to break anything with the update, so you shouldn't
have to change anything on your side either. Can you send us a stack
trace/valgrind output and/or test code to reproduce? That'll expedite a
fix...
Happy hacking!
-Christian
On 2/26/24 19:44, silvioprog wrot
Hey guys.
After upgrading MHD in my project, it is raising segfault, and seems like
happening in any function that MHD uses to internally to access
"connection->rq", like "MHD_basic_auth_get_username_password",
"MHD_lookup_connection_value_n" etc.:
https://github.com/risoflora/libsagui/actions/ru