stream: set min_bytes to count bytes if <= 0.