[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] issue with suspend/resume
From: |
Evgeny Grin |
Subject: |
Re: [libmicrohttpd] issue with suspend/resume |
Date: |
Wed, 10 May 2017 21:57:17 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 10.05.2017 10:31, José Bollo wrote:
> On Fri, 5 May 2017 21:09:21 +0300
> Evgeny Grin <address@hidden> wrote:
>> Shouldn't be any change.
>> Could you provide minimal example?
>
>
> My feeling is that this is a typical use case and it should work with
> only one call to MHD_run. I also think that providing a way to resume a
> connection and sending the pending data without having to call MHD_run
> would help (but is not required).
>
Thanks for clarifying and example.
MHD do not provide any obligation how many MHD_run() call should be
passed before something is processed.
You example works with older version only by coincidence. If you change
polling function from epoll to poll() or select(), it will require more
MHD_run() calls.
Moreover, latest versions sending responses with fewer MHD_run() calls,
especially in epoll mode. If you provide full response right at time -
it will be send immediately, no need to use MHD_run() more times.
However I'll make some changes to provide early resume in external poll
mode. You could try MHD from git master tomorrow.
--
Best Wishes,
Evgeny Grin
- [libmicrohttpd] issue with suspend/resume, José Bollo, 2017/05/05
- Re: [libmicrohttpd] issue with suspend/resume, Evgeny Grin, 2017/05/05
- Re: [libmicrohttpd] issue with suspend/resume, José Bollo, 2017/05/06
- Re: [libmicrohttpd] issue with suspend/resume, José Bollo, 2017/05/10
- Re: [libmicrohttpd] issue with suspend/resume, Evgeny Grin, 2017/05/11
- Re: [libmicrohttpd] issue with suspend/resume, José Bollo, 2017/05/11
- Re: [libmicrohttpd] issue with suspend/resume, Evgeny Grin, 2017/05/11
- Re: [libmicrohttpd] issue with suspend/resume, José Bollo, 2017/05/11
- Re: [libmicrohttpd] issue with suspend/resume, Evgeny Grin, 2017/05/11
- Re: [libmicrohttpd] issue with suspend/resume, Evgeny Grin, 2017/05/11
- Re: [libmicrohttpd] issue with suspend/resume, José Bollo, 2017/05/12