Emil Plalan found and fixed a bug where the buffer refill would loop
forever (until WDT) when there was no more data to read. For web streams
this wasn't detected, since there isn't really an EOF. However, single
files streamed from a web server would have this problem.