implements eof management in fastcgi parser