efl_io_copier: do not ERROR on EAGAIN.

As done by write, if we try to read and we can't, then don't give
up. This happens with streams that wraps another, like SSL, may report
there are data to read, but once you try it may not result in enough
data to upper layers.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-10-28 21:11:17 -02:00
parent f8a5290798
commit 9a13816fb3
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ _efl_io_copier_read(Eo *o, Efl_Io_Copier_Data *pd)
err = efl_io_reader_read(pd->source, &rw_slice);
if (err)
{
efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
if (err != EAGAIN)
efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
return;
}