[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.
>
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, (continued)
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Vitaliy T, 2017/03/16
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Vitaliy T, 2017/03/16
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Evgeny Grin, 2017/03/17
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Evgeny Grin, 2017/03/17
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Vitaliy T, 2017/03/17
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Evgeny Grin, 2017/03/17
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Vitaliy T, 2017/03/17
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Evgeny Grin, 2017/03/17
- Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections, Christian Grothoff, 2017/03/21
- Re: [libmicrohttpd] [PATCH]: try_grow_read_buffer() failed, Evgeny Grin, 2017/03/17
Re: [libmicrohttpd] [PATCH]: timeout and suspend/resume,
Evgeny Grin <=