[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] libmicrohttpd 0.9.55 https and MHD_USE_EPOLL
From: |
Evgeny Grin |
Subject: |
Re: [libmicrohttpd] libmicrohttpd 0.9.55 https and MHD_USE_EPOLL |
Date: |
Mon, 11 Sep 2017 11:22:35 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
Hi Denis,
Thanks for confirming.
--
Best Wishes,
Evgeny Grin
On 11.09.2017 3:29, Denis Dowling wrote:
> Hi Evgeny,
>
> I have checked my application with the latest git master version of
> libmicrohttpd and your change fixes the epoll lockup problem.
>
> Thanks for your help.
>
> Regards,
> Denis
>
> -----Original Message-----
> From: libmicrohttpd [mailto:address@hidden On Behalf Of Evgeny Grin
> Sent: Saturday, 9 September 2017 5:08 AM
> To: address@hidden
> Subject: Re: [libmicrohttpd] libmicrohttpd 0.9.55 https and MHD_USE_EPOLL
>
> Hi Denis,
>
> Problem was fixed in git master.
> Could you recheck on your side?
>
> --
> Best Wishes,
> Evgeny Grin
>
> On 05.09.2017 23:22, Evgeny Grin wrote:
>> Hi Denis,
>>
>> Reproduced on CentOS 7 with current git master.
>> Will look into it.
>>
>> -- Best Wishes, Evgeny Grin On 05.09.2017 4:54, Denis Dowling wrote:
>>> Hi Evgeny,
>>>
>>> It is actually the GET that is causing the problem.
>>>
>>> I have been able to duplicate as follows:
>>> - Testing on CentOS7.3.1611. Everything up to date according to yum.
>>> - Start with a clean unpack of libmicrohttpd-0.9.55
>>> - Edit the https_fileserver_example.c file and change the
>>> MHD_USE_THREAD_PER_CONNECTION option to MHD_USE_EPOLL. Leave the other
>>> options as they are.
>>> - make https_fileserver_example
>>> - In the same directory create 2 files of different sizes (1kB and 100kB)
>>> dd if=/dev/urandom of=small.dat bs=1024 count=1
>>> dd if=/dev/urandom of=big.dat bs=1024 count=100
>>> - Start https_fileserver_example
>>> ./https_fileserver_example 8888
>>> - In another window use wget to grab both files
>>> wget --no-check-certificate https://localhost:8888/small.dat
>>> wget --no-check-certificate https://localhost:8888/big.dat
>>>
>>> In my case the big.dat download freezes at 16384 bytes downloaded. If I
>>> change from MHD_USE_EPOLL to MHD_USE_POLL it works fine. If I use
>>> MHD_USE_AUTO it hangs as the system detects epoll() and uses it.
>>>
>>> Regards,
>>> Denis
>>>
>
> ________________________________
>
>
> The information contained in this message and any attachments is strictly
> confidential and intended solely for the use of the intended recipient(s).
> The copyright in this communication belongs to (HSD). This message and any
> attachments are confidential and may be subject to legal or other
> professional privilege. Any confidentiality or privilege is not waived or
> lost because this e-mail has been sent to you by mistake. If you have
> received this transmission in error, please notify HSD on +61 3 9875 5900
> immediately and destroy all copies of this e-mail. The contents of this email
> message may not be quoted, copied, reproduced or published in part or in
> whole, without the written authorisation of HSD.
>
signature.asc
Description: OpenPGP digital signature