Commit 6765f86
Ensure async task completes before sending packets (#5765)
## Description
Spurious failures of
Misc/WithReceiveResumeNoDataArgs.ReceiveResumeNoData/2 have been
observed in the OS repository.
From traces, this is due to a race between `StreamReceiveSetEnabled`
(processed async) and receiving the shutdown frame sent by the client:
it was possible the shutdown frame was indicated by the server before it
blocks receives.
## Testing
CI. This is a rare race, so validation is mostly for non-regression.
## Documentation
N/A
---------
Co-authored-by: Michael Friesen <3517159+mtfriesen@users.noreply.github.com>1 parent cd94771 commit 6765f86
2 files changed
+36
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1989 | 1989 | | |
1990 | 1990 | | |
1991 | 1991 | | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1992 | 1997 | | |
1993 | 1998 | | |
1994 | 1999 | | |
| |||
2206 | 2211 | | |
2207 | 2212 | | |
2208 | 2213 | | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
2209 | 2217 | | |
2210 | 2218 | | |
2211 | 2219 | | |
| |||
2215 | 2223 | | |
2216 | 2224 | | |
2217 | 2225 | | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
2218 | 2232 | | |
2219 | 2233 | | |
2220 | 2234 | | |
| |||
2227 | 2241 | | |
2228 | 2242 | | |
2229 | 2243 | | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
2230 | 2248 | | |
2231 | 2249 | | |
2232 | 2250 | | |
2233 | 2251 | | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
2234 | 2256 | | |
2235 | 2257 | | |
2236 | 2258 | | |
| |||
2242 | 2264 | | |
2243 | 2265 | | |
2244 | 2266 | | |
2245 | | - | |
| 2267 | + | |
2246 | 2268 | | |
2247 | 2269 | | |
2248 | 2270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
0 commit comments