Skip to content

increase installer + curl download timeout from 30s to 300s#12443

Merged
slarse merged 3 commits intogitbutlerapp:masterfrom
craigmayhew:master
Feb 20, 2026
Merged

increase installer + curl download timeout from 30s to 300s#12443
slarse merged 3 commits intogitbutlerapp:masterfrom
craigmayhew:master

Conversation

@craigmayhew
Copy link
Contributor

@craigmayhew craigmayhew commented Feb 19, 2026

🧢 Changes

  • [30db885] Increase curl timeout from 30s to 300s in install sh script
  • [9965bcc] Modified rust installer to wait 300 seconds

☕️ Reasoning

Slow conference wifi prevented me installing but!

🎫 Affected issues

n/a

@vercel
Copy link

vercel bot commented Feb 19, 2026

@craigmayhew is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

@krlvi
Copy link
Member

krlvi commented Feb 19, 2026

Thanks for this! <3 The conference wifi is a gift that keeps on giving ;p (who would have thought that downloading 1MB takes more than 30s :)

@craigmayhew
Copy link
Contributor Author

craigmayhew commented Feb 19, 2026

I also needed to modify the rust installer binary itself as that has a hard 30s timeout.
24MB on MacOS and that was the main culprit.

Have compiled and run ./target/debug/but-installer on very slow wifi to prove it now works.

@github-actions github-actions bot added the rust Pull requests that update Rust code label Feb 19, 2026
@craigmayhew craigmayhew changed the title increase install script download timeout from 30s to 300s increase installler + curl download timeout from 30s to 300s Feb 19, 2026
@craigmayhew craigmayhew changed the title increase installler + curl download timeout from 30s to 300s increase installer + curl download timeout from 30s to 300s Feb 19, 2026
@krlvi krlvi requested a review from slarse February 19, 2026 17:23
Copy link
Contributor

@slarse slarse left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@craigmayhew Unfortunately you have one unsigned commit. We require signed commits as of... yesterday I think. Could you please sign it?

use curl::easy::Easy;

const REQUEST_TIMEOUT_SECS: u64 = 30;
const REQUEST_TIMEOUT_SECS: u64 = 300;
Copy link
Contributor

Choose a reason for hiding this comment

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

Oof, this timeout was very tight! The binaries can be pretty large (nightly Linux is 66 MB, for example). This was an oversight for sure!

echo "Fetching installer information..."

EFFECTIVE_URL=$(curl --fail --silent --show-error --location --max-redirs 5 --max-time 30 \
EFFECTIVE_URL=$(curl --fail --silent --show-error --location --max-redirs 5 --max-time 300 \
Copy link
Contributor

Choose a reason for hiding this comment

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

While I don't think this is where the issue was (the app is ~25-65x the size of the installer, so the app download timeout is still by far the most limiting factor), I don't see any particular harm in increasing this timeout as well.

As long as there is some timeout!

Copy link
Contributor

@slarse slarse left a comment

Choose a reason for hiding this comment

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

Actually, I'll request changes to make it clear. Sorry about the confusion, I missed that detail.

@craigmayhew Unfortunately you have one unsigned commit. We require signed commits as of... yesterday I think. Could you please sign 12f49e4?

@craigmayhew
Copy link
Contributor Author

craigmayhew commented Feb 20, 2026

@craigmayhew Unfortunately you have one unsigned commit. We require signed commits as of... yesterday I think. Could you please sign 12f49e4?

@slarse An oversight on my part - I have signed and pushed :)

Copy link
Contributor

@slarse slarse left a comment

Choose a reason for hiding this comment

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

Thanks @craigmayhew!

@slarse slarse merged commit 4e2832e into gitbutlerapp:master Feb 20, 2026
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants