Commit 3a2a861
committed
[Support] Fix the Read/Write of socket stream
This PR fixes the `dmlc::Stream::Read/Write` for TCP socket.
Given socket does not guarantee that all data are send received/sent
in a single shot, we need to use `RecvAll/SendAll`.1 parent e1da465 commit 3a2a861
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
0 commit comments