Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Runtime][Disco] Restore checks for hangup of disco pipe (#16997)
This resolves a conflict between two recent changes. In #16989, reads of size zero are used to identify hangups in `ProcessSession`. In #16992, reads of size zero are treated as an error to avoid infinite loops while waiting for data to be ready. For a long-term resolution, the `dmlc::Stream` interface will need to be updated, so that the `Write` method returns the number of bytes written, just as the `Read` method currently does. This will allow the calling scope to verify the number of bytes received.
- Loading branch information