Skip to content

ENH: Added timeout capability for IO calls - #275

Merged
martinfleis merged 1 commit into
geopandas:mainfrom
cmcconomyfwig:main
Dec 22, 2025
Merged

ENH: Added timeout capability for IO calls#275
martinfleis merged 1 commit into
geopandas:mainfrom
cmcconomyfwig:main

Conversation

@cmcconomyfwig

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
Contributor Author

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

@martinfleis martinfleis left a comment

Copy link
Copy Markdown
Member

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.

@martinfleis martinfleis changed the title Added timeout capability for IO calls ENH: Added timeout capability for IO calls Dec 22, 2025
@martinfleis
martinfleis merged commit 9bbe275 into geopandas:main Dec 22, 2025
11 of 27 checks passed
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