Skip to content

Change curl timeout for low speed connection#605

Closed
saigontech wants to merge 1 commit intoheroku:mainfrom
saigontech:curl-connection-timeout
Closed

Change curl timeout for low speed connection#605
saigontech wants to merge 1 commit intoheroku:mainfrom
saigontech:curl-connection-timeout

Conversation

@saigontech
Copy link
Copy Markdown

for the low-speed connection environment, the current 5s timeout value seems too low.
I often get Failed to download standard library for bootstrapping! error when deploying the app to my homelab server
can we increase it to ~ 60s to make it works more friendly?

@saigontech saigontech requested a review from a team as a code owner November 16, 2022 10:02
Copy link
Copy Markdown
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(switching the code review request from the team alias to the PHP language owner)

@edmorley edmorley requested a review from dzuelke January 15, 2024 10:37
@dzuelke dzuelke self-assigned this Feb 14, 2024
@dzuelke
Copy link
Copy Markdown
Contributor

dzuelke commented Feb 14, 2024

Idea: should we support CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT as env vars, and use them there? (these are not standard env vars that curl understands by default, but the names would correspond to the options of libcurl)

@edmorley
Copy link
Copy Markdown
Member

Fwiw for Python, bumping the fixed timeout very slightly was enough to make the "underpowered server" use-case work without needing to support customising the timeout:
heroku/heroku-buildpack-python#1439

@dzuelke dzuelke closed this in #698 Feb 20, 2024
dzuelke added a commit that referenced this pull request Feb 20, 2024
To support environments where it takes longer than 5 seconds to establish the HTTPS connection (such as Dokku).

Closes #605.

GUS-W-15080665
@edmorley edmorley removed the request for review from dzuelke February 20, 2024 14:22
robinwo pushed a commit to robinwo/heroku-buildpack-php that referenced this pull request Sep 13, 2024
)

To support environments where it takes longer than 5 seconds to establish the HTTPS connection (such as Dokku).

Closes heroku#605.

GUS-W-15080665
robinwo pushed a commit to robinwo/heroku-buildpack-php that referenced this pull request Sep 13, 2024
)

To support environments where it takes longer than 5 seconds to establish the HTTPS connection (such as Dokku).

Closes heroku#605.

GUS-W-15080665
robinwo pushed a commit to robinwo/heroku-buildpack-php that referenced this pull request Sep 13, 2024
)

To support environments where it takes longer than 5 seconds to establish the HTTPS connection (such as Dokku).

Closes heroku#605.

GUS-W-15080665
robinwo pushed a commit to robinwo/heroku-buildpack-php that referenced this pull request Sep 13, 2024
)

To support environments where it takes longer than 5 seconds to establish the HTTPS connection (such as Dokku).

Closes heroku#605.

GUS-W-15080665
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.

3 participants