Commit 2637c2c
committed
chore: thread context through to SendCustomMessage
The only way to unblock SendCustomMessage is if the peer activates,
disconnects or the server shuts down. This means that if the context is
cancelled, we will still wait until one of those other events happen.
With this commit we thread the context through to SendCustomMessage, so
that if the context is cancelled, we can return early. This improves the
cancellation semantics.1 parent e4fc01b commit 2637c2c
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9251 | 9251 | | |
9252 | 9252 | | |
9253 | 9253 | | |
9254 | | - | |
| 9254 | + | |
9255 | 9255 | | |
9256 | 9256 | | |
9257 | 9257 | | |
| |||
9261 | 9261 | | |
9262 | 9262 | | |
9263 | 9263 | | |
9264 | | - | |
| 9264 | + | |
9265 | 9265 | | |
9266 | 9266 | | |
9267 | 9267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5291 | 5291 | | |
5292 | 5292 | | |
5293 | 5293 | | |
5294 | | - | |
5295 | | - | |
| 5294 | + | |
| 5295 | + | |
5296 | 5296 | | |
5297 | 5297 | | |
5298 | 5298 | | |
5299 | 5299 | | |
5300 | 5300 | | |
5301 | 5301 | | |
5302 | | - | |
| 5302 | + | |
| 5303 | + | |
5303 | 5304 | | |
5304 | 5305 | | |
5305 | 5306 | | |
5306 | 5307 | | |
5307 | 5308 | | |
5308 | 5309 | | |
| 5310 | + | |
| 5311 | + | |
5309 | 5312 | | |
5310 | 5313 | | |
5311 | 5314 | | |
| |||
0 commit comments