Repository navigation
Commit e3789b0
test(swift): unmask scripted-server frames eight bytes at a time (#203)
TransportProbeTests' largeFramesBothWays(urlSession) failed on the iOS
Simulator job when the scripted server got no frame within the probe's
30 s wait (the "Message too long" in the log is the next probe's expected
line). The server unmasked the client's 11 MB frame one byte at a time:
0.8 s in a debug build on an idle Mac, and past 30 s on a starved CI
simulator; with xctest throttled to 2.5% CPU it failed the same way.
XORing eight bytes at a time takes 28 ms instead of 1.07 s, and passed
under the same throttle.
Amp-Thread-ID: https://ampcode.com/threads/T-fbae32eb-2a12-4ebe-a716-b1b0bf7c246f
Co-authored-by: Amp <amp@ampcode.com>1 parent e4f199a commit e3789b0
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
255 | 273 | | |
256 | 274 | | |
257 | 275 | | |
| |||
0 commit comments