libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Sleeping a request thread


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Sleeping a request thread
Date: Fri, 19 May 2017 00:33:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Hi,

Sleeping in THREAD_PER_CONNECTION mode is fine --- if you want to really
just throttle the response generation and basically create latency.

-Christian

On 05/19/2017 12:22 AM, Miguel Sancho wrote:
> Hi,
> using the MHD_USE_THREAD_PER_CONNECTION mode,
> are there any issues in "sleeping" the request thread some seconds
> waiting for response? any known drawback in MHD?
> 
> for example to wait 4s:
>          usleep(4000000)
>          MHD_queue_response (..)
> 
> Thanks

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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