Should also check rlen when err is EOF