Commit aeab115
fix: explicitly use StreamSelectLoop for Pro download
The Pro download kept failing in a Docker container when the `uv`
extension was enabled (which set the default global loop to the
`ExtUvLoop` instance) with the following error:
Connection to tls://fixer-download-api.phpstan.com:443 timed out after 5 seconds (ETIMEDOUT)
This can be fixed by explicitly using a `StreamSelectLoop` for the
Pro download, which is the same loop that's used everywhere else in the
codebase.
Note that we have to set this as the global loop because the `await()`
function no longer supports passing a loop as an argument.1 parent 9cf5370 commit aeab115
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
341 | 344 | | |
342 | 345 | | |
343 | 346 | | |
| |||
347 | 350 | | |
348 | 351 | | |
349 | 352 | | |
| 353 | + | |
350 | 354 | | |
| 355 | + | |
351 | 356 | | |
352 | 357 | | |
353 | 358 | | |
| |||
388 | 393 | | |
389 | 394 | | |
390 | 395 | | |
391 | | - | |
| 396 | + | |
392 | 397 | | |
393 | 398 | | |
394 | 399 | | |
| |||
0 commit comments