[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout network request to send crash reports to API #129

Merged
merged 11 commits into from
Feb 19, 2018

Conversation

UberMouse
Copy link
Contributor
@UberMouse UberMouse commented Feb 19, 2018

Adds configuration option for setting the timeout of the POST call to the API server when submitting a crash report.

This is primarily to ensure that when using the send_in_background configuration option that network issues don't cause a bunch of observables to stick around waiting for the network call to finish clogging up memory and threads.

Also bumps rake from v0.9.6 to v11 and replaces Fakeweb with webmock


This change is Reviewable

Unfortunately this just triggers a timeout, doesn't actually confirm it
will time out. But confirms that the behaviour when a time out _does_
happen is correct
Noticed while running unit tests that this was passed a proc once which
caused a failure. Under the assumption that being passed a proc means
something went wrong, make that a failure case here
@UberMouse UberMouse merged commit 2244996 into master Feb 19, 2018
@UberMouse UberMouse deleted the tl/timeout-post-call branch February 19, 2018 03:27
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.

1 participant