[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Re : Re: Connection time out and MHD_USE_POLL_INTERNALLY

From: louisbenoit
Subject: [libmicrohttpd] Re : Re: Connection time out and MHD_USE_POLL_INTERNALLY causes busy loop
Date: Thu, 16 Apr 2015 10:38:55 -0400


May I suggest two other fixes related to that issue:
1) When the loop info is set to MHD_EVENT_LOOP_INFO_CLEANUP, we should not wait for the timeout as we want to release the thread and the ressources ASAP.
I suggest to add
        /* When a connection needs clean up, we have to do it now */
        timeout = 0;
at daemon.c:2417 (SVN 35535)
2) When the MHD has determined that the connections has timed out, we should send 408 to the client
I suggest to add
      transmit_error_response (connection, MHD_HTTP_REQUEST_TIMEOUT, "");
      connection->write_handler (connection);
at connection.c:2646 (SVN 35532)



Le 14/04/15, Christian Grothoff <address@hidden> a écrit :
Fixed as suggested in SVN 33535. Thanks! -Christian

On 04/14/15 23:14, address@hidden wrote:
> I resolved the issue in my development code by adding pos->idle_handler
> (pos) at daemon.c:2477 in MHD_poll_all (SVN 35533).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]