-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feat/protocol prefs #89
Conversation
57fa777
to
0aaf4cf
Compare
it appears theres actually a problem on osx here |
0aaf4cf
to
287383a
Compare
alright, fixed the osx thing, apparently it was slower for OSX to close out the socket than on linux. @Kubuxu wanna review? |
Can you add me to libp2p org so I can assign myself? |
invite sent |
The one thought I had here is that the preference logic should probably be moved into the peerstore. |
@Kubuxu still review this, but i'm gonna merge it so i can move forward here. |
LGTM, it would be worth to use |
@Kubuxu yeah, i was thinking that too. we can do that later, it was kindof awkward to do the casting between the peerstore and multistream code |
This adds support for remembering which of a set of protocols works for a given peer. It also uses protocols learned from the identify handshake to seed this knowledge if available.