Commit dea0b98
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 7205737 commit dea0b98
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments