src/cod: Read lines more asynchronously