I've moved EOF detection into the streams layer; a stream reader implementation should set stream->eof when it detects EOF. Fixed test for user streams - it still fails but that is due to an output buffering bug.
for old functions where required. Make use of recent changes to chunk size and timeout setting code.
Tidy up user streams even more. Make test case quite aggressive.
Add a small test case (not yet complete).