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

les: update checktime even if check fails #21425

Merged
merged 1 commit into from
Aug 7, 2020
Merged

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Aug 7, 2020

Whenever a les-client connected to a server, the server internally did an RPC-call on each handshake. This was quite resource intensive, and was fixed in #21285 which prevented it from doing so more than once per minute.
However, the PR was a bit lacking -- if the call failed, which might be the case during syncing, the fix actually made the situation worse. Not only did it still do RPC request for each handshake, the added lock also forces those rpc requests to be made serially.

This PR addresses that.

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

SGTM

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.

None yet

2 participants