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

Support timeouts in _request_options #166

Merged
merged 10 commits into from
Aug 3, 2015
Merged

Conversation

analogue
Copy link
Contributor

So _request_options currently only supports headers. This adds support for timeout and connect_timeout to both the Fido and Requests http clients.

Fixes issue #165

@analogue analogue changed the title Suppro timeouts in _requets_options Support timeouts in _request_options Jul 24, 2015
:param op_kwargs: parameter name/value pairs to pass to the invocation
of the operation.
:param op_kwargs: parameter name/value pairs to passed to the
invocation of the operation.
:return: request in dict form
"""
request_options = op_kwargs.pop('_request_options', {})
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind adding .copy() here while you're at it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will create another PR to make sure _request_options and headers are not mutated.

Copy link
Contributor

Choose a reason for hiding this comment

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

This will fix #160 for bravado.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't look like it is an issue in bravado - https://github.com/Yelp/fido/blame/master/fido/fido.py#L171

@prat0318
Copy link
Contributor

looks good overall.

analogue added a commit that referenced this pull request Aug 3, 2015
Support timeouts in _request_options
@analogue analogue merged commit 1d53f3e into Yelp:master Aug 3, 2015
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.

3 participants