Make sure 10 byte read is considered EOF not error (bug #3505)