Re: [OpenWrt-Devel] [PATCH V2 uclient] support for connection timeout

2015-01-16 Thread John Szakmeister
On Fri, Jan 16, 2015 at 4:42 AM, Rafał Miłecki wrote: [snip] > - if (uh->state == HTTP_STATE_RECV_DATA && uc->cb->data_read) > - uc->cb->data_read(uc); > + if (uh->state == HTTP_STATE_RECV_DATA) > + /* Now it's uclient user turn to read some data */ > +

[OpenWrt-Devel] [PATCH V2 uclient] support for connection timeout

2015-01-16 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- V2: Add uclient_set_timeout Stop timer after receiving data Start timer after fetching data by uclient user --- uclient-fetch.c | 4 uclient-http.c | 12 ++-- uclient.c | 36 +++- uclient.h | 20 ++