Skip to content

Can a range request cause a connection reset by peer, and can I disable it? #1342

Answered by martindurant
itcarroll asked this question in Q&A
Discussion options

You must be logged in to vote

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" in open()), but you will of course download all bytes doing this.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@itcarroll
Comment options

@martindurant
Comment options

@itcarroll
Comment options

@martindurant
Comment options

@itcarroll
Comment options

Answer selected by itcarroll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants