Skip to content

Conversation

@cmcconomyfwig
Copy link

In order to permit setting an upper bound on requests, an optional timeout parameter is added to the core _retryer function, and cascaded upward to all ultimate endpoints.

The default value if not specified is None, which matches the existing functionality.

@cmcconomyfwig
Copy link
Author

An important note - this allows a previously-never-encountered urllib3.exceptions.ReadTimeoutError exception to bubble up, and would need to be caught by anyone who provides a timeout specification to their call.

@cmcconomyfwig
Copy link
Author

Note test timeouts -- a.tile.openstreetmap.org seems to be balking as a default source.

Copy link
Member

@martinfleis martinfleis left a comment

Choose a reason for hiding this comment

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

I'd normally say we should add a test for this but I got no clue how. Any ideas? Otherwise we can just merge as is.

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