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

kad: Ensure Kademlia Record has TTL #129

Closed
2 tasks done
Tracked by #140
lexnv opened this issue May 28, 2024 · 0 comments · Fixed by #162
Closed
2 tasks done
Tracked by #140

kad: Ensure Kademlia Record has TTL #129

lexnv opened this issue May 28, 2024 · 0 comments · Fixed by #162
Assignees

Comments

@lexnv
Copy link
Collaborator

lexnv commented May 28, 2024

If the record received by kad::put_value does not have a TTL, use the default 36h expiry.

/// The expiration time as measured by a local, monotonic clock.
pub expires: Option<Instant>,

Tasks

  1. bug
    dmitry-markin
lexnv added a commit that referenced this issue Jun 14, 2024
This PR introduces a default TTL for records.
- the default is set to 36h if the record ttl is unspecified
- this ensures the local memory store is not polluted with records
without TTL

Part of: #129

---------

Signed-off-by: Alexandru Vasile <[email protected]>
@lexnv lexnv self-assigned this Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants