libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] [PATCH]: timeout and suspend/resume


From: Evgeny Grin
Subject: Re: [libmicrohttpd] [PATCH]: timeout and suspend/resume
Date: Wed, 15 Mar 2017 20:41:10 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Could you provide an example code, which you are trying to fix?

-- 
Best Wishes,
Evgeny Grin

On 15.03.2017 15:13, Vitaliy T wrote:
> The patch is below.
> 
> diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
> index f192a1bb..bc1e2abc 100644
> --- a/src/microhttpd/connection.c
> +++ b/src/microhttpd/connection.c
> @@ -1406,7 +1406,8 @@ MHD_connection_update_event_loop_info (struct
> MHD_Connection *connection)
>            connection->event_loop_info = MHD_EVENT_LOOP_INFO_WRITE;
>            break;
>          case MHD_CONNECTION_CONTINUE_SENT:
> -          if (connection->read_buffer_offset == connection->read_buffer_size)
> +          if (! connection->suspended &&
> +              (connection->read_buffer_offset == 
> connection->read_buffer_size))
>              {
>                if ((MHD_YES != try_grow_read_buffer (connection)) &&
>                    (0 != (connection->daemon->options &
> 
> Thanks.
> 



reply via email to

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