rbuels / http-range-fetcher Goto Github PK
View Code? Open in Web Editor NEWrequest-merging fetch manager for doing large numbers of HTTP range requests
License: MIT License
request-merging fetch manager for doing large numbers of HTTP range requests
License: MIT License
https://www.npmjs.com/package/http-range-fetcher is at 1.2.4
https://github.com/rbuels/http-range-fetcher/tags has no 1.2.4
I saw this because looking at dependencies I see that conventional-changelog-angular is included as a "runtime dependency" somewhere down the line still which b227857 was meant to fix
Apparently some people can have poorly configured servers, and sometimes configuring servers is hard, so possibly having a flag to ignore cache controls could be worth it
Observed in the wild in jbrowse, a very specific request pattern triggered an extra range request past the end of the file.
const globalRangeCache = new HttpRangeFetcher({
fetch: binaryRangeFetch,
size: 500 * 1024 ** 2, // 500MiB
chunkSize: 128 * 124, // strange size
maxFetchSize: 100 * 1024 ** 2, // 100MiB
minimumTTL: 24 * 60 * 60 * 1000, // 1 day
})
The stats cache is an LRU so stats can be evacuated before they are being attempted to be used
Xref GMOD/jbrowse#1473
Usage of http-range-fetcher in our code requires Content-Length or Content-Range headers and if it is unavailable it produces hard to understand errors like this exchange
scottcain: @cmdcolin is there a bug with small vcf files? When I load an indexed vcf file via the web interface as a local file, it works fine, but when I put it in the config or load it as a remote url, I get a message error decompressing block undefined at 0 (length 65536) Error: unknown compression method Of interest is that the error message refers to a length of 65536 when the actual length of the file is 2248.
This error was also left open related to this
GMOD/jbrowse#1356
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.