This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit d680050
committed
implement new
As of WebAssembly/component-model#524, we now trap if a
guest tries to use a stream or future handle (besides dropping it) after it is
"done" (see that PR for what "done" means). This required more careful tracking
of the state of each end of the stream or future.
In the process of debugging this into shape, I added some trace logging and
addressed a couple of issues I noticed:
- `wasi-http`'s `Response::into_http` wasn't noticing a non-empty buffer at the end of a stream
- the `p3_http_middleware` test was not clearing its buffer before each read
Signed-off-by: Joel Dice <[email protected]>stream/future trap conditions1 parent cfc95e7 commit d680050
File tree
13 files changed
+720
-104
lines changed- crates
- test-programs/src/bin
- wasi-http
- src/p3
- tests/all/p3
- wasi
- tests/all/p3
- wasmtime/src/runtime
- component
- concurrent
- tests/misc_testsuite/component-model-async
13 files changed
+720
-104
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
637 | 640 | | |
638 | 641 | | |
639 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
224 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4115 | 4115 | | |
4116 | 4116 | | |
4117 | 4117 | | |
4118 | | - | |
4119 | | - | |
| 4118 | + | |
| 4119 | + | |
4120 | 4120 | | |
4121 | 4121 | | |
4122 | 4122 | | |
4123 | 4123 | | |
4124 | 4124 | | |
4125 | | - | |
| 4125 | + | |
4126 | 4126 | | |
4127 | 4127 | | |
4128 | 4128 | | |
4129 | | - | |
| 4129 | + | |
4130 | 4130 | | |
4131 | 4131 | | |
4132 | 4132 | | |
| |||
4139 | 4139 | | |
4140 | 4140 | | |
4141 | 4141 | | |
| 4142 | + | |
4142 | 4143 | | |
4143 | | - | |
4144 | | - | |
| 4144 | + | |
| 4145 | + | |
4145 | 4146 | | |
4146 | 4147 | | |
4147 | 4148 | | |
| |||
0 commit comments