summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2017-07-28 11:04:23 -0300
committerGuilherme Iscaro <iscaro@profusion.mobi>2017-07-28 15:22:51 -0300
commit493f75587d3ff0dd5a5689efc0de72c047bcf5ac (patch)
treead32897f703d2a49f26587fd969efce6c458d167 /src/lib/ecore_con
parent0a51ac29973a2983350726734bca7e191e88a048 (diff)
Ecore_Conn: Set EOS only if the connection is not closed.#algo.
This check prevents that EOS is set on a closed connection. Fixes T5180
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_http.c b/src/lib/ecore_con/efl_net_dialer_http.c
index 68cb83fa0c..064c000ace 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -322,9 +322,11 @@ _efl_net_dialer_http_curlm_check(Efl_Net_Dialer_Http_Curlm *cm)
322 if (pd->recv.used > 0) pd->pending_eos = EINA_TRUE; 322 if (pd->recv.used > 0) pd->pending_eos = EINA_TRUE;
323 else 323 else
324 { 324 {
325 efl_io_reader_eos_set(dialer, EINA_TRUE);
326 if (!efl_io_closer_closed_get(dialer)) 325 if (!efl_io_closer_closed_get(dialer))
327 efl_io_closer_close(dialer); 326 {
327 efl_io_reader_eos_set(dialer, EINA_TRUE);
328 efl_io_closer_close(dialer);
329 }
328 } 330 }
329 331
330 _efl_net_dialer_http_curlm_check_finished_object_remove(&finished, dialer); 332 _efl_net_dialer_http_curlm_check_finished_object_remove(&finished, dialer);