- Notifications
You must be signed in to change notification settings - Fork1k
Commit4e9fe62
committed
fix: Leaking yamux session after HTTP handler is closed
Closes#317. The httptest server cancels the context after the connectionis closed, but if a connection takes a long time to close, the requestwould never end. This applies a context to the entire listener that cancelson test cleanup.After discussion with@bryphe-coder, reducing the parallel limit onWindows is likely to reduce failures as well.1 parent5ef59e7 commit4e9fe62
File tree
4 files changed
+28
-6
lines changed- .github/workflows
- coderd/coderdtest
- pty
4 files changed
+28
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 |
| |
154 | 158 |
| |
155 |
| - | |
| 159 | + | |
156 | 160 |
| |
157 | 161 |
| |
158 | 162 |
| |
| |||
166 | 170 |
| |
167 | 171 |
| |
168 | 172 |
| |
169 |
| - | |
| 173 | + | |
170 | 174 |
| |
171 | 175 |
| |
172 |
| - | |
| 176 | + | |
173 | 177 |
| |
174 | 178 |
| |
175 | 179 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
62 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 |
| |
64 | 71 |
| |
65 | 72 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
| |||
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| |||
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
| 46 | + | |
| 47 | + | |
44 | 48 |
| |
45 | 49 |
| |
46 | 50 |
| |
47 | 51 |
| |
48 | 52 |
| |
49 | 53 |
| |
50 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 |
| |
52 | 59 |
| |
53 | 60 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 |
| - | |
| 17 | + | |
17 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 |
| |
19 | 23 |
| |
20 | 24 |
| |
| |||
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
28 |
| - | |
| 32 | + | |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
|
0 commit comments
Comments
(0)