-
Notifications
You must be signed in to change notification settings - Fork 89
Keep alive apps and scheduled-stop #2230
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
Conversation
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.
The functionality doesn't match what we need for a keep-alive miniprotocol.
Without a req-rsp model it is not possible to get the needed RTT measurement and it is not possible for the client to learn that the server is down in a timely manner.
ouroboros-network/src/Ouroboros/Network/Protocol/KeepAlive/Codec.hs
Outdated
Show resolved
Hide resolved
@karknu this is req-resp model. Every |
- byteLimitsKeepAlive: with a test - timeLimitsKeepAlive: 10s limit for waiting for server's reply, no limit on a client's message.
This might not be needed at all for clients. To provide it we'd need a distinction between client and server `OuroborosApplication`. I think it's better to do this at a later stage.
subscribe must use `IO`, because of `ncSubscriptionWorker`, but `versionedProtocols` can be polymorphic in its runtime monad.
f5f8ec8
to
6e8cce9
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 to me.
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,
(I only looked at the changes in Cardano.Client.Subscription
)
You're right. |
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.
bors merge |
No description provided.