There is pystac.stac_io.RetryStacIO that allow for retries but does not support setting a timeout.
In both cases the underlying HTTP library changes (to requests and urllib3 respectively) so unit tests that depend on UrllibMocker will have to be adapted.
Related:
https://github.com/Open-EO/openeo-geopyspark-driver/blob/39fd7d1b7088e2f6f3fe6a300f045075e6c10541/openeogeotrellis/load_stac.py#L572
Passing
pystac-client
'sStacApiIO
looked like an easy fix but this does not work: https://github.com/stac-utils/pystac-client/issues/706.There is
pystac.stac_io.RetryStacIO
that allow for retries but does not support setting a timeout.In both cases the underlying HTTP library changes (to
requests
andurllib3
respectively) so unit tests that depend onUrllibMocker
will have to be adapted.