<div dir="ltr"><div>Hi Even,</div><div><br></div><div>Yes, that's a good point. What I've done at <a href="https://github.com/mapbox/rasterio/blob/maint-1.2/tests/test_warp.py#L2022">https://github.com/mapbox/rasterio/blob/maint-1.2/tests/test_warp.py#L2022</a> makes the tests sensitive to the text of CPLError messages, which could change. It's not ideal. On the other hand, I do have confirmation that range requests can be retried. It can be a hard thing to demonstrate reliably with production servers, which might return a 503 only one time in a million.</div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 5, 2021 at 10:09 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hi Sean,</p>
    <p>The code for retry of range requests of regions of data is at
<a href="https://github.com/OSGeo/gdal/blob/master/gdal/port/cpl_vsil_curl.cpp#L1602" target="_blank">https://github.com/OSGeo/gdal/blob/master/gdal/port/cpl_vsil_curl.cpp#L1602</a>
      . It indeed looks like there's no test for that. You might file an
      issue about adding one.</p>
    <p>Side node: it might become a maintenance burden on rasterio if
      you test such low level implementation detail of GDAL, especially
      if you test like we do which exact requests are done and in which
      order, if we change at some later point how requests are done<br>
    </p>
    <p>Even<br>
    </p>
    <div>Le 05/10/2021 à 17:44, Sean Gillies via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>In writing some rasterio tests I am able to get GDAL to
          retry head requests for a vsicurl dataset, but am unable to
          trigger retries for range requests to regions of the data. I
          don't recognize any tests for range request retrying in or
          near <a href="https://github.com/OSGeo/gdal/blob/master/autotest/gcore/vsicurl.py#L473" target="_blank">https://github.com/OSGeo/gdal/blob/master/autotest/gcore/vsicurl.py#L473</a>.
          Do we intend to support this or is it a missing feature?<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr">
            <div dir="ltr">Sean Gillies</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre></blockquote>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sean Gillies</div></div></div>