Commit f044eef
authored
[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.1 parent b49468d commit f044eef
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
0 commit comments