-
Notifications
You must be signed in to change notification settings - Fork 86
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
Keep Alive protocol #2251
Keep Alive protocol #2251
Conversation
a417c84
to
d52ad4b
Compare
ouroboros-consensus/ouroboros-consensus-test-infra/src/Test/ThreadNet/Network.hs
Outdated
Show resolved
Hide resolved
d52ad4b
to
00516c3
Compare
e36950b
to
4755ced
Compare
I was going to suggest we used a technique such as https://github.com/input-output-hk/ouroboros-network/blob/6507ec6eb08e75925e9c3072a11db84e226bf706/io-sim-classes/src/Control/Monad/Class/MonadTimer.hs#L125-L136 <https://github.com/input-output-hk/ouroboros-network/blob/6507ec6eb08e75925e9c3072a11db84e226bf706/io-sim-classes/src/Control/Monad/Class/MonadTimer.hs#L125-L136>
Perhaps export maxDelay as an attribute of MonadTImer ?
… On 15 Jun 2020, at 20:47, Karl Knutsson ***@***.***> wrote:
@karknu commented on this pull request.
In ouroboros-network/src/Ouroboros/Network/DeltaQ.hs <#2251 (comment)>:
> @@ -269,3 +275,21 @@ gsvRequestResponseDuration PeerGSV{outboundGSV, inboundGSV}
gsvTrailingEdgeArrive outboundGSV reqSize
<> gsvTrailingEdgeArrive inboundGSV respSize
+
+defaultGSV :: PeerGSV
+defaultGSV = PeerGSV { outboundGSV, inboundGSV }
+ where
+ default_g = 3600 -- 1h, start with an unreasonable large G.
There isn't a maxBound for DiffTime.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2251 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAB75OFINWLGQHMY737Y7W3RWZ3EHANCNFSM4N4FKB5Q>.
|
That is a great idea. I will define a local |
9d35129
to
e4991fb
Compare
Part of #1416 |
e317925
to
a69f143
Compare
f6ed7c2
to
dfa6cfe
Compare
040548a
to
042470e
Compare
I know, I needed it for testing which was done with a 1.18.0 node. |
ouroboros-network/src/Ouroboros/Network/BlockFetch/ClientRegistry.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/src/Ouroboros/Consensus/Network/NodeToNode.hs
Outdated
Show resolved
Hide resolved
3e6743a
to
f2aab06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some comments / suggestions follows.
f2aab06
to
64450c3
Compare
It makes reviewing this PR harder for me, because that commit touches many consensus files, but I have to ignore these changes. Moreover, I believe it's the cause of the merge conflicts. |
d203902
to
cc3709c
Compare
The PR is intended to be reviewed one commit at the time, but in you're case I guess you're mostly interested in reviewing the changes at the consensus layer so that doesn't help. I've rebased on top of master and the extra commit is no longer there. |
cc3709c
to
eae882c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
eae882c
to
e5f599f
Compare
ouroboros-consensus/src/Ouroboros/Consensus/Network/NodeToNode.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/ouroboros-consensus-test-infra/src/Test/ThreadNet/Network.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/ouroboros-consensus-test-infra/src/Test/ThreadNet/Network.hs
Outdated
Show resolved
Hide resolved
fd753d4
to
0b57047
Compare
Implement smooth switching from slower to faster peers by temporarily ignoring the concurrency limit for faster peers. This lets faster peers starve out slower peers and makes it possible to switch peers without first having to wait for all outstanding requests to the slower peers to finish.
Give peers with outstanding bytes an advantage when ordering peers.
Add a random cookie to keep-alive messages so that a rouge responder can't send a MsgKeepAliveResponse before it has read the MsgKeepAlive.
Temporarily increase the keep-alive timeout to 60s.
eb35856
to
29b0272
Compare
bors r+ |
No description provided.