Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retryDelay prop not being honoured on first retry. #38

Open
evaleen opened this issue Feb 15, 2022 · 0 comments
Open

retryDelay prop not being honoured on first retry. #38

evaleen opened this issue Feb 15, 2022 · 0 comments

Comments

@evaleen
Copy link

evaleen commented Feb 15, 2022

Hey!

I have set the retryDelay in my config to 5 seconds, and I have run into an issue recently where the first chunk is failing on initial fetch. It is actually taking ~2 minutes to retry the download.

If I block that download in the network tab, I can see that the subsequent retries of the same chunk (&retry-attempt=1+N) honour the 5 second delay.
Digging into the source code I believe this is happening in the ensureChunk webpack callback here, but I'm struggling to find docs that explain the ensureChunk webpack function and when it is called.

Is the ensureChunk function only called after all the chunks have made an initial request and have a response? If so, is it possible to call it after each chunk failure?

Thanks! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant