... but ignore EAGAIN if the stream has ended so that we don't end up in a loop. This is a follow-up to c8ab6131 in order to avoid the problem d261652d was made to fix. Reported-by: Jay Satiro Clues-provided-by: Tatsuhiro Tsujikawa Discussed in #750