Skip to content

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 3 times, most recently from 7fa59cd to dc8117d Compare June 30, 2025 21:59
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 dc8117d to a738bab Compare July 14, 2025 18:54
@ondrejmirtes ondrejmirtes merged commit aeab115 into phpstan:2.1.x Jul 17, 2025
412 of 419 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@calebdw calebdw deleted the calebdw/push-vtwwlopurysq branch July 17, 2025 12:30
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.

2 participants