itchio / butler

🎩 Command-line itch.io helper
MIT License
744 stars 55 forks source link

Increase default timeout, perhaps via argument #218

Open assertchris opened 3 years ago

assertchris commented 3 years ago

Thanks for your awesome work.

Seeing many forum threads about how the 2 second context deadline exceeded timeout might be prohibitively short for developers with sub-optimal network connections. Would you be open to extending this, perhaps even via a command-line argument?

I'm hesitant to make a PR just adjusting the number to an arbitrarily higher number (say 2 -> 5 seconds) because that doesn't seem like the best kind of fix. But, if you're ok with that, then I'm happy to submit. I don't understand enough about Go (or the itch ecosystem of libraries) to be confident in adding support for a command-line argument; or I'd have submitted the argument-based solution already...

Edit: to be clear, this is an issue I'm also struggling with.