Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
24d1eb40
Commit
24d1eb40
authored
3 years ago
by
Robert Klotzner
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Increase PoV timeout slightly. (#3144)
parent
fd14e682
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polkadot/node/network/protocol/src/request_response/mod.rs
+4
-4
4 additions, 4 deletions
polkadot/node/network/protocol/src/request_response/mod.rs
with
4 additions
and
4 deletions
polkadot/node/network/protocol/src/request_response/mod.rs
+
4
−
4
View file @
24d1eb40
...
...
@@ -86,10 +86,10 @@ const DEFAULT_REQUEST_TIMEOUT: Duration = Duration::from_secs(3);
/// peer set as well).
const
DEFAULT_REQUEST_TIMEOUT_CONNECTED
:
Duration
=
Duration
::
from_secs
(
1
);
/// Timeout
for PoV like data, 2 times what it should take, assuming we can fully utilize the
///
bandwidth. This amounts to two seconds right now.
const
POV_REQUEST_TIMEOUT_CONNECTED
:
Duration
=
Duration
::
from_millis
(
2
*
1000
*
(
MAX_POV_SIZE
as
u64
)
/
MIN_BANDWIDTH_BYTES
);
/// T
his t
imeout
is based on what seems sensible from a time budget perspective, considering 6
///
second block time. This is going to be tough, if we have multiple forks and large PoVs, but we
/// only have so much time.
const
POV_REQUEST_TIMEOUT_CONNECTED
:
Duration
=
Duration
::
from_millis
(
1000
);
/// We want timeout statement requests fast, so we don't waste time on slow nodes. Responders will
/// try their best to either serve within that timeout or return an error immediately. (We need to
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment