Commit 61f63a7
authored
Motivation:
When the idle handler determines that the channel needs to be closed
(becuase the connection is no longer required) it does so on the current
event loop tick. Closing immediately means that some events which are
already scheduled to run on the current tick may be dropped unexpectedly.
Modifications:
- Execute the channel close on the next event-loop tick.
- Fixup a test which now requires an extra loop `run()`.
Result:
Shutdown is a little more graceful.
(cherry picked from commit c43be58)
1 parent a5bc23d commit 61f63a7
File tree
2 files changed
+7
-2
lines changed- Sources/GRPC
- Tests/GRPCTests
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| 803 | + | |
803 | 804 | | |
804 | 805 | | |
805 | 806 | | |
| |||
0 commit comments