Commit 34d4f74
committed
Honor the cancel-silence commitment in the shutdown drain
The dispatcher's shutdown arm wrote the CONNECTION_CLOSED drain answer for
every in-flight request it caught unwinding, including one whose peer had
already cancelled it and whose loop layer had committed it to 2026 cancel
semantics - where no frame of any kind may follow notifications/cancelled.
A silence-committed peer-cancelled request caught at loop shutdown now
stays silent.
The rule lives in one predicate on the dispatch context, must_stay_silent,
consulted by both frame-suppressing sites (_answer_error and the shutdown
drain) so it cannot drift between them; the interrupt arm remains its
complementary write side. Requests the peer did NOT cancel keep the drain
answer regardless of the commitment - the EOF-drain doctrine is unchanged.1 parent 7c6aba7 commit 34d4f74
2 files changed
Lines changed: 80 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
182 | 196 | | |
183 | 197 | | |
184 | 198 | | |
| |||
796 | 810 | | |
797 | 811 | | |
798 | 812 | | |
799 | | - | |
800 | | - | |
801 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
802 | 820 | | |
803 | 821 | | |
804 | 822 | | |
| |||
848 | 866 | | |
849 | 867 | | |
850 | 868 | | |
851 | | - | |
| 869 | + | |
852 | 870 | | |
853 | 871 | | |
854 | 872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
311 | 369 | | |
312 | 370 | | |
313 | 371 | | |
| |||
0 commit comments