bugsnag / bugsnag-source-maps

CLI and JS library for uploading source maps to BugSnag
MIT License
16 stars 9 forks source link

Add `--idle-timeout` flag #74

Closed imjoehaines closed 3 years ago

imjoehaines commented 3 years ago

Goal

This PR adds a new --idle-timeout flag to all commands which controls the network request idle timeout (see Node docs)

This is a more user-friendly alternative to the existing environment variable BUGSNAG_TIMEOUT_MS. The new flag uses minutes (--idle-timeout 10 is a 10 minute timeout) which is much more ergonomic than BUGSNAG_TIMEOUT_MS=60000

I've also raised the default timeout to 10 minutes as it seemed to be hit somewhat frequently at 5