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

fix: remove sockaddrs field from Target #1412

Conversation

oleonardolima
Copy link
Contributor

fixes #1411

@oleonardolima oleonardolima requested a review from a team as a code owner June 18, 2024 14:22
@oleonardolima oleonardolima force-pushed the fix/do-not-resolve-ips-on-build-with-stream branch 3 times, most recently from 4c21cf4 to fcf3da2 Compare June 19, 2024 03:08
@oleonardolima oleonardolima changed the title wip: remove sockaddrs field from Target fix: remove sockaddrs field from Target Jun 19, 2024
- remove the `sockaddrs` field from `Target`.
- resolve the `sockaddrs` only in `try_connect_over_tcp`, the only place
  it's required.
- do not resolved `sockaddrs` on `build_with_stream`.
@oleonardolima oleonardolima force-pushed the fix/do-not-resolve-ips-on-build-with-stream branch from fcf3da2 to dd0bec4 Compare June 19, 2024 03:40
Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

LGTM

@oleonardolima
Copy link
Contributor Author

LGTM

I was thinking about how to prevent regressions on this (as it could "leak" connection data), and I'll try to create a test for it in a new commit, then it should be ready to go.

@niklasad1 niklasad1 requested a review from jsdw June 21, 2024 19:01
@niklasad1
Copy link
Member

@oleonardolima are you happy with this PR without the extra tests you mentioned?

@oleonardolima
Copy link
Contributor Author

@oleonardolima are you happy with this PR without the extra tests you mentioned?

Yes, I can add it later in another PR.

@niklasad1 niklasad1 merged commit 5ac7047 into paritytech:master Jun 26, 2024
10 checks passed
niklasad1 pushed a commit that referenced this pull request Jun 26, 2024
- remove the `sockaddrs` field from `Target`.
- resolve the `sockaddrs` only in `try_connect_over_tcp`, the only place
  it's required.
- do not resolved `sockaddrs` on `build_with_stream`.
@oleonardolima oleonardolima deleted the fix/do-not-resolve-ips-on-build-with-stream branch June 26, 2024 10:44
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.

bug(transport): it should not try to resolve sockaddrs when using build_with_stream
2 participants