Skip to content

add optional timeout - #12

Open
vadimg wants to merge 1 commit into
hongtaocai:masterfrom
vadimg:master
Open

add optional timeout#12
vadimg wants to merge 1 commit into
hongtaocai:masterfrom
vadimg:master

Conversation

@vadimg

@vadimg vadimg commented Apr 20, 2016

Copy link
Copy Markdown

Prevents hanging threads due to network issues.

Prevents hanging threads due to network issues.
Comment thread googlefinance/__init__.py
u'pcls_fix': u'PreviousClosePrice'
}

DEFAULT_TIMEOUT = None

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please set a number here for a default value

@vadimg vadimg Apr 27, 2016

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Are you sure you want that? It will make this change non-backwards compatible.

Meaning that some clients (who are on bad networks perhaps?) may start timing out.

So, should I set this default value to something ridiculous, like 30 seconds?

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.

2 participants