Can a range request cause a connection reset by peer, and can I disable it? #1342
-
I'm getting Unfortunately to reproduce you will need Earthdata login credentials. And although it's not imported, you'll need h5netcdf.
I can
I believe it's the range request in particular that is causing trouble, but I'm not sure why a range request is issued when the server does not provide an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
No, a Range should not be able to cause this. A server may refuse connection due to unexpected headers (but should return a normal exception) or just ignore the header (which is annoying!). A poorly configures server, however... h5netcdf needs range requests to read metadata and chunks in a random-access manner. To get around it, you could use local file caching (e.g., prefix "simplecache::" to the URL) or in-memory caching ( |
Beta Was this translation helpful? Give feedback.
No, a Range should not be able to cause this. A server may refuse connection due to unexpected headers (but should return a normal exception) or just ignore the header (which is annoying!). A poorly configures server, however...
h5netcdf needs range requests to read metadata and chunks in a random-access manner. To get around it, you could use local file caching (e.g., prefix "simplecache::" to the URL) or in-memory caching (
cache_type="all"
inopen()
), but you will of course download all bytes doing this.