Commit 02de71a
authored
Discard auto-allocated BYOB request on enqueue
As discovered in #1170 (comment): if a BYOB request was auto-allocated, but then you call controller.enqueue() instead of byobRequest.respond(), then the auto-allocated pull-into descriptor stays in the queue. If you later on switch from a default reader to a BYOB reader, you run into trouble because the list of read-into requests no longer matches up with the list of pending pull-into descriptors.
This PR fixes it by making enqueue() discard that auto-allocated BYOB request.1 parent c079d53 commit 02de71a
File tree
3 files changed
+13
-2
lines changed- reference-implementation
- lib/abstract-ops
3 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3137 | 3137 | | |
3138 | 3138 | | |
3139 | 3139 | | |
| 3140 | + | |
| 3141 | + | |
3140 | 3142 | | |
3141 | 3143 | | |
3142 | 3144 | | |
3143 | 3145 | | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
3144 | 3151 | | |
3145 | 3152 | | |
3146 | 3153 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| 1292 | + | |
1292 | 1293 | | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | | - | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1296 | 1300 | | |
1297 | 1301 | | |
1298 | 1302 | | |
| |||
Submodule web-platform-tests updated 4815 files
0 commit comments