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

ndt7: fix message scaling in the download measurement #331

Merged
merged 5 commits into from
Jun 1, 2021

Conversation

robertodauria
Copy link
Contributor

@robertodauria robertodauria commented May 27, 2021

The message scaling algorithm stopped at ~64k even if MaxScaledMessageSize is set to 1MB (1 << 20).

This one-line diff fixes the algorithm by comparing the current message size (rather than the total amount of bytes sent) to the maximum message size.

As a result, the first doubling happens after 16 messages and the subsequent ones every 8 messages.


This change is Reviewable

Copy link
Contributor

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 1440

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 81.788%

Files with Coverage Reduction New Missed Lines %
ndt7/upload/sender/sender.go 5 65.91%
Totals Coverage Status
Change from base Build 1434: -0.1%
Covered Lines: 1729
Relevant Lines: 2114

💛 - Coveralls

@bassosimone
Copy link
Contributor

🎉

@robertodauria robertodauria merged commit 913b54a into master Jun 1, 2021
@robertodauria robertodauria deleted the sandbox-roberto-increase-message-size branch June 1, 2021 09:02
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

Successfully merging this pull request may close these issues.

4 participants