libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends


From: Evgeny Grin
Subject: Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections
Date: Wed, 15 Mar 2017 23:54:00 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

That's why I asked about user code example. I can't test what we trying
to fix.
Did you test it or only review?
Seems that MHD read data from network after you suspended connection,
which cause overflow buffer overflow and error response.
You issue should be fixed by afb221c32aeeb2731e3b5362cc4ff8949d34edea.

Alternatively - may be you don't consume data in callback, which cause
buffer overflow. One more reason why I asked for user code. Without your
code it's only blindly guessing.

Disconnect by timeout for suspended connections should be fixed, so you
can stop playing with timeout values.

You mentioned that you had some problems in master with epoll and
timeouts. Is it still actual?

-- 
Best Wishes,
Evgeny Grin

On 15.03.2017 23:26, Vitaliy T wrote:
> On 15 March 2017 at 21:52, Evgeny Grin <address@hidden> wrote:
>> Actually we should call MHD_connection_update_event_loop_info() in any
>> case after processing of data.
>> I already applied some patches to master. Check whether it helps.
> 
> About commit ......bcfacf404
> 
> Seems same for me. Same place, same issue with loop inside
> MHD_connection_handle_idle (). Something changes the
> connection->suspended value in the function MHD_connection_handle_idle
> (). The patch is still actual :)
> 



reply via email to

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