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

update protocol IDs to use versioned strings #2704

Closed
wants to merge 2 commits into from

Conversation

whyrusleeping
Copy link
Member

@diasdavid this should work for you. Mind trying out this branch against your code?

License: MIT
Signed-off-by: Jeromy why@ipfs.io

@Kubuxu
Copy link
Member

Kubuxu commented May 16, 2016

Resolves #1549

} else {
return nil, err
}
}
Copy link
Member

Choose a reason for hiding this comment

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

i dont understand why this is needed? adding more protocols should be the same as using ... ohhh i get it, if our first connecting fails, we issue a read to check if what we sent is bad-- hence use a different one? Wonder if paying to cost of 1RTT is better or worse than opening 2 streams simultaneously and closing one afterward.... hmmmmmmmmm decisions.

@whyrusleeping
Copy link
Member Author

@jbenet we might be able to get better perf here by somehow exposing multiple protocol selection (like we get at the multistream layer). That way we can do something like:

s, proto, err := host.NewStreamWithProtos(ctx, peer, ProtocolBitswap, ProtocolBitswapOld)

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@whyrusleeping
Copy link
Member Author

closing in favor of #3132

@whyrusleeping whyrusleeping deleted the fix/mstream-ids branch August 26, 2016 21:14
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.

4 participants