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

Send AwaitReply to prevent timeouts. #432

Merged
merged 4 commits into from
Oct 13, 2023
Merged

Conversation

Niols
Copy link
Contributor

@Niols Niols commented Oct 12, 2023

This PR builds on top of #431.

When a ChainSync server is done serving its chain, it now sends an AwaitReply message to the client so as to not get disconnected from too fast (typically, clients wait for 10s for a response, or 80-150s for a response after AwaitReply).

As a hack, servers also now return AwaitReply when they fall behind the intersection of the client due to the PointSchedule's structure. It is not clear to us why this is accepted by a client.

@Niols Niols added the Genesis PRs related to Genesis testing and implementation label Oct 12, 2023
Base automatically changed from niols+tek/move-tests to fd/genesis-tests October 12, 2023 17:34
@facundominguez
Copy link
Contributor

I think I need some description of the problem that this PR is trying to solve.

@tek tek marked this pull request as ready for review October 13, 2023 12:37
@tek tek requested a review from a team as a code owner October 13, 2023 12:37
trace "Added to current chain"
trace $ "New tip: " ++ condense newTipPoint
trace $ "New fragment: " ++ condense newFragment
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change intended?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, that was too noisy and mostly redundant

Copy link
Contributor

@facundominguez facundominguez left a comment

Choose a reason for hiding this comment

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

LGTM

@tek tek merged commit 65140c3 into fd/genesis-tests Oct 13, 2023
10 checks passed
@tek tek deleted the niols+tek/await-reply branch October 13, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Genesis PRs related to Genesis testing and implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants