Commit 22650e7
committed
Enforce that rules must end or destroy before they resolve successfully
The one step breaking this invariant was the streaming step, which
resolved immediately. This meant it ignored any possible errors. With
this fix, stream errors will now be exposed in the response stream as
expected.
This also changes logic so that in general any handler throwing an
AbortError will have the underlying response automatically killed
if it hasn't destroyed it itself already. This shouldn't affect any
externally visible behaviour.1 parent c4c271a commit 22650e7
File tree
3 files changed
+27
-7
lines changed- src
- rules/requests
- server
- test/integration/subscriptions
3 files changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
296 | 300 | | |
297 | 301 | | |
298 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
299 | 315 | | |
300 | 316 | | |
301 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
749 | 754 | | |
750 | 755 | | |
751 | 756 | | |
| 757 | + | |
752 | 758 | | |
753 | 759 | | |
754 | 760 | | |
| |||
770 | 776 | | |
771 | 777 | | |
772 | 778 | | |
773 | | - | |
| 779 | + | |
774 | 780 | | |
775 | 781 | | |
776 | 782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
0 commit comments