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:
parent
f8a5290798
commit
9a13816fb3
|
@ -228,6 +228,7 @@ _efl_io_copier_read(Eo *o, Efl_Io_Copier_Data *pd)
|
|||
err = efl_io_reader_read(pd->source, &rw_slice);
|
||||
if (err)
|
||||
{
|
||||
if (err != EAGAIN)
|
||||
efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue