Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Conversation

@ccstolley
Copy link

By default there is no timeout on requests to the InstagramAPI. This can
cause unexpected behavior if a system is not anticipating a request to
block indefinitely.

This patch stops short of imposing a default timeout value, but does
expose the ability to specify a timeout value upon creating an api object.

The README has also been updated.

@dellsystem
Copy link

👍 for this change. I've personally been setting the default socket timeout to 5 seconds but being able to set a timeout on a specific InstagramAPI instance would be solid.

@MrYoda
Copy link

MrYoda commented Mar 21, 2016

👍 please, merge this for next release

Colin Stolley added 4 commits May 31, 2017 09:29
This is a rebased version of Kevin's original fix from here:
https://github.com/facebookarchive/python-instagram/pull/195/files
By default there is no timeout on requests to the InstagramAPI. This can
cause unexpected behavior if a system is not anticipating a request to
block indefinitely.

This patch stops short of imposing a default timeout value, but does
expose the ability to specify a timeout value upon creating an api object.

The README has also been updated.
This includes a hack to get around urlencoding unicode tags.
@ccstolley ccstolley closed this May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants