Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Add timeouts into the SDK #80

Merged
merged 5 commits into from
May 13, 2019
Merged

Add timeouts into the SDK #80

merged 5 commits into from
May 13, 2019

Conversation

heartsucker
Copy link
Contributor

Fixes #79

  • Creates a timeout exception to catch all possible timeouts from requests / Qubes RPC
  • Remove mutable global state for the proxy VM name
  • Minor refactor to increase readability of code

Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

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

couple of comments that we can talk about outside this PR, otherwise lgtm!

submission.source_uuid, submission.uuid
submission.source_uuid,
submission.uuid,
timeout=timeout or self.default_download_timeout,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work? Won't timeout get ignored since there isn't a {timeout} var in the string?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also do we want to pass a timeout to download_reply the way we do here for download_submission?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh wow, I added that to the wrong place entirely. Good catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also I figured it's ok for now to not pass this to replies since realistically we aren't going to have huge replies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDK should handle timeouts
3 participants