Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

feat: keep addresses for longer #207

Merged
merged 1 commit into from Jul 22, 2021
Merged

feat: keep addresses for longer #207

merged 1 commit into from Jul 22, 2021

Conversation

Stebalien
Copy link
Member

There's really no reason to expire these after 10 minutes as opposed to 30. Given that our default DHT refresh interval is 10 minutes, setting this to 30 reduces the chances that we'll "forget" peers.

There's really no reason to expire these after 10 minutes as opposed to
30. Given that our default DHT refresh interval is 10 minutes, setting
this to 30 reduces the chances that we'll "forget" peers.
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

This seems like a reasonable idea to me. I know peerstore numbers are a bit magical, so I'm not sure if there's other fallout from here.

cc @marten-seemann as a heads up

@aschmahmann
Copy link
Contributor

Note: maybe I'm paranoid, but this might be the kind of PR we want to bubble up + test in larger binaries before merging. On the other hand, it's a pretty easy revert if we need to and this kind of change should be fine.

@Stebalien
Copy link
Member Author

I really doubt this will cause significant issues, honestly.

@aschmahmann
Copy link
Contributor

SGTM

@Stebalien Stebalien merged commit 6e24b97 into master Jul 22, 2021
@Stebalien Stebalien deleted the feat/long-addr-ttls branch July 22, 2021 21:50
@Stebalien
Copy link
Member Author

Well, it could affect libp2p/go-libp2p#351. But I don't think it'll make anything much worse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants