Commit 39548ce
authored
drop write end of stream before writing trailers (#130)
This tells the receiver that there is no body content remaining and that it
should switch to reading the trailers, if any. Otherwise, the sender and
receiver will deadlock, with the sender waiting to rendezvous its write to the
trailers future and the receiver waiting to receive more content bytes.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>1 parent e022abb commit 39548ce
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments