Skip to content

Add timeout to requests call #165

@wtip

Description

@wtip

It looks like a timeout was added to the requests calls that are used for streaming but the regular call never times out. I did a iptables -A OUTPUT -p tcp --dport 443 -j DROP and the nest api call just hung without timing out.

I think this section needs to be updated

response = self._session.request(verb, url,
                                         allow_redirects=False,
                                         data=data)

http://docs.python-requests.org/en/v0.6.1/api/#requests.request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions