efl_net_dialer_http: fix interaction with CURL on receiving data.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 1 Sep 2016 15:18:40 +0000 (12:18 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 2 Sep 2016 03:08:50 +0000 (00:08 -0300)
commit6ddd01bffb9398c88c22d3d9e4354224525961e1
treeb75df510f00fc1b9b1d4844b0bf9984a51b107b7
parentd12ff74f5fd93497a5c9c3ddd3bd52f7bcbe3e5d
efl_net_dialer_http: fix interaction with CURL on receiving data.

When CURLOPT_WRITEFUNCTION returns less then the requested amount,
CURL will fail, not call us back with the remaining data.

Then in such cases we must pause CURL and read nothing.

When unpausing we need to kick curl with timeout action so FD handlers
will be re-arranged.

Last but not least, sync our buffer limit with CURL, otherwise it may
always fail if we're smaller than CURL.
src/lib/ecore_con/ecore_con_url_curl.h
src/lib/ecore_con/efl_net_dialer_http.c