Commit 6f828b8
authored
docs: say what close() and end() do with messages already sent (#1306)
close() maps to the close() syscall, so anything still queued by send()
is not delivered; end() delivers it and then sends the close message.
The distinction was implied by 'forcefully' and 'gracefully' but never
written, and reading close() as the graceful one costs a silent loss of
the last message.1 parent f0324e9 commit 6f828b8
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments