Skip to content

Conversation

sechkova
Copy link
Contributor

@sechkova sechkova commented Oct 7, 2021

Fixes #1484

Description of the changes being introduced by the pull request:

The purpose of sleep_before_round was to ensure blocking inside the download loop and releasing CPU resources.

To our best knowledge the network stack currently used in RequestsFetcher will always block inside the loop
and the issue cannot be reproduced. chunk_size and socket_timeout are currently the settings provided by RequestsFetcher to tweak CPU usage and download granularity.

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

The purpose of this config was to ensure blocking
inside the download loop and releasing CPU resources.

To our best knowledge the network stack currently used
in RequestsFetcher will always block inside the loop
and the issue cannot be reproduced.

'chunk_size' and 'socket_timeout' are currently the
settings provided by RequestsFetcher to tweak
CPU usage and download granularity.

Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
@coveralls
Copy link

coveralls commented Oct 7, 2021

Pull Request Test Coverage Report for Build 1316201048

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.1%) to 98.338%

Totals Coverage Status
Change from base Build 1294989370: 1.1%
Covered Lines: 3716
Relevant Lines: 3744

💛 - Coveralls

@jku jku merged commit 5cdc7dc into theupdateframework:develop Oct 11, 2021
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.

ngclient: consider removing SLEEP_BEFORE_ROUND
3 participants