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

Add overall timeouts #47

Merged
merged 4 commits into from
Sep 22, 2014
Merged

Conversation

ben-jones
Copy link
Contributor

created timeouts and ensured that we remove results after upload

@ben-jones
Copy link
Contributor Author

@gsathya, will you review this?

@ben-jones
Copy link
Contributor Author

Also, this addresses issue #47

# the entire transaction should take less than 5 min
servers['total_timeout'] = 60*5
# each request should timeout if we go 15 seconds without
# hearing from the other party
Copy link
Contributor

Choose a reason for hiding this comment

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

"Each request should timeout in 15 seconds"

Copy link
Contributor

Choose a reason for hiding this comment

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

As a general thought - you should try to keep comments as concise as possible. Make the code clearer instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree that in general, my comments should be more concise, but I want to indicate here that this is not a timeout on the complete request: it is for the socket. requests does not offer a way to do complete request timeouts.

Copy link
Contributor

Choose a reason for hiding this comment

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

but the comment doesn't say that either? it doesn't say anything about sockets

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update the comment

@gsathya
Copy link
Contributor

gsathya commented Sep 22, 2014

the total timeout only seems to be logging stuff and not anything else?

@ben-jones
Copy link
Contributor Author

@gsathya, I forgot to return if we hit one of those conditions, which is sad considering that was the whole point.

@ben-jones
Copy link
Contributor Author

@gsathya, fixed the problem of not breaking out. Thoughts?

@ben-jones
Copy link
Contributor Author

@gsatha, I just pushed fixes for the comment. Any other thoughts on this pull request? Can we merge it?

@gsathya
Copy link
Contributor

gsathya commented Sep 22, 2014

sweet 👍

gsathya added a commit that referenced this pull request Sep 22, 2014
@gsathya gsathya merged commit 614105b into iclab:master Sep 22, 2014
@ben-jones ben-jones deleted the add_overall_timeouts branch July 9, 2015 22:06
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.

None yet

2 participants