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

Improve the AbandonRequestsRule.js by using traces from progress event #4369

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

dsilhavy
Copy link
Collaborator

This PR addresses #3840

  • The AbandonRequestRule now uses the traces that are populated in the _onprogress event of HTTPLoader. The current throughput is calculated based on these traces aalso removing the first sample from the calculation as it includes latency.
  • Removed fragmentDict and throughputArray from AbandonRequestRule as they are not needed and blow up the code.
  • Allow configuration of the relevant parameters for the AbandonRequestRule via Settings.js.
  • Refactor the code in AbandonRequestRule for better structuring and easier understanding.

…t. Also allow configuration of relevant parameters via settings.
@dsilhavy dsilhavy added this to the 5.0.0 milestone Jan 24, 2024
@dsilhavy dsilhavy merged commit 19ddc54 into v5.0.0 Jan 25, 2024
4 checks passed
@dsilhavy dsilhavy deleted the fix/#3840 branch January 25, 2024 07:13
@dsilhavy dsilhavy mentioned this pull request Jan 25, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant