[PATCH 2/2] fdstream: fix EOF handling when reading data