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

Allow client and server to share bindings #2299

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

anrossi
Copy link
Contributor

@anrossi anrossi commented Jan 16, 2022

Allow bindings to be shared between clients and servers. This will allow a client to create outbound connections on the same address and port as a listener on the same node.

@anrossi anrossi added the Area: Core Related to the shared, core protocol logic label Jan 16, 2022
@anrossi anrossi added this to the Future milestone Jan 16, 2022
@anrossi anrossi requested a review from a team as a code owner January 16, 2022 01:34
Copy link
Member

@nibanks nibanks left a comment

Choose a reason for hiding this comment

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

Generally looks good! It definitely needs some corresponding test cases to make sure it can be shared. Ideally also update spinquic.

//
// Indicates whether this binding has client side owners or not.
//
BOOLEAN ClientOwned : 1;
Copy link
Member

Choose a reason for hiding this comment

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

Let's rename this "Owned" flags to something like "Used` instead.

src/core/binding.c Outdated Show resolved Hide resolved
@anrossi
Copy link
Contributor Author

anrossi commented Jan 19, 2022

I think my openssl submodule is on an old commit and it's showing up in this PR. I'll fix that before merging

@nibanks nibanks marked this pull request as draft February 1, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Related to the shared, core protocol logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants