Commit fe74c8f
committed
Fix the tcp_echo_server test to avoid hangs.
Shut down the writing end of the socket after writing, to allow the
server to end the stream, allowing a `read_to_end` on the reading end
to reach the end of the stream.1 parent b7b5207 commit fe74c8f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments