Skip to content

Conversation

guites
Copy link

@guites guites commented Jun 27, 2025

This PR allows setting the CURLOPT_CONNECTTIMEOUT values in the Docker.php file using environment variables.

This improvement helps fix issues such as appwrite/appwrite#8698, https://appwrite.io/threads/1285572082469437581 and other similar problems in appwrite where the user tries to run a function that needs a cold start and receives the following error:

Internal curl error has occurred within the executor! Error Number: 28\nError Code: 500

I have found that the reason is that, mainly on the $executeV5 call, the timeout for receiving the first byte is hard coded as a 5.

This PR would allow the environment variable to be later exposed to Appwrite and configured to greater values such as 30 seconds for slower machines.

Cheers!

@charlscript
Copy link

Very welcome fix.
getting this merged would be a huge win

@guites guites force-pushed the feat-set-curl-connect-timeout-env-var branch from 3f828ca to 035fed0 Compare June 27, 2025 19:20
@ArthurKretzer
Copy link

Great contribution! This change fixes an important behavior and improves runtime stability. It would be great to have this merged soon — it can save a lot of time for anyone debugging similar issues. 👏

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