Hi! 0.9.9 is a rather old release at this point. This bug has already been fixed in one of the 25 releases that were published since then. You might want to update to a more recent version of your OS, if you can.
Happy hacking! Christian On 05/05/2014 05:56 AM, 钱在晨 wrote: > Dear Sir/MadamWhen using libmicrohttpd-0.9.9 in our program on redhat 6u, we > find the issue that requests are refused randomly . Then we check the code, > find that the micro-second part of a struct timeval tv is not initialized, so > it could be randomly set negative.Following is our patch to fix the bug:--- > daemon.c 2014-05-05 11:43:03.004311322 +0800 > +++ daemon.c 2014-05-05 11:42:57.220306712 +0800 > @@ -581,6 +581,7 @@ > tv.tv_sec = 0; > else > tv.tv_sec = timeout - (now - con->last_activity); > + tv.tv_usec = 0; > tvp = &tv; > } > if ((con->state == MHD_CONNECTION_NORMAL_BODY_UNREADY) ||
0x48426C7E.asc
Description: application/pgp-keys
