When read returns -1, we know we've reached the end of input. Instead of waiting for the onAllDataRead container callback, this commit proactively calls onAllDataRead. Issue: SPR-16521
When read returns -1, we know we've reached the end of input. Instead of waiting for the onAllDataRead container callback, this commit proactively calls onAllDataRead. Issue: SPR-16521