Skip to content

fix: explicitly use StreamSelectLoop for Pro download #4077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 2.1.x
Choose a base branch
from

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Jun 30, 2025

Hello!

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.

Thanks!

@calebdw calebdw force-pushed the calebdw/push-vtwwlopurysq branch 2 times, most recently from 35afa96 to 7fa59cd Compare June 30, 2025 21:53
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.
@calebdw calebdw force-pushed the calebdw/push-vtwwlopurysq branch from 7fa59cd to dc8117d Compare June 30, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant