On 17.03.2017 10:03, Evgeny Grin wrote:
> On 17.03.2017 5:42, Vitaliy T wrote:

>> As we can see the connection 127.0.0.1 port 47824 was suspended,
>> resumed and then again suspended.
>>
>> The server was run in epoll mode with 1 thread.
>> DEFAULT_HTTPD_CONNECTION_MEMORY_LIMIT = 128k
>> DEFAULT_HTTPD_CONNECTION_MEMORY_INCREMENT = 4k
>> Both suspend & resume operations are called from DH.
>>
>> Hope, it will help.
> 
> To get the full picture, could you also monitor value pointed by
> 'upload_data_size' before and after your MHD_AccessHandlerCallback is
> called?
> 
> Please note that even if you suspend connection, you must process at
> least some data (preferably - all data) and decrement value of
> 'upload_data_size'.

Processing logic was updated: while connection is suspended overflown
buffer will not cause connection to fail (as it will not generate
busy-waiting for suspended connection), but once connection is resumed -
connection will fail if application will not read data from buffer in
callback.

-- 
Best Wishes,
Evgeny Grin

Reply via email to