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

netutil: improve port allocation #3432

Closed
wants to merge 2 commits into from

Conversation

calebdoxsey
Copy link
Contributor

Summary

Sometimes we seem to allocate an invalid port which causes tests to fail: https://github.com/pomerium/pomerium/runs/6923304146?check_suite_focus=true

This PR updates the port allocation code to hopefully use a more reliable approach.

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@calebdoxsey calebdoxsey added the ci CI/CD and release automation label Jun 16, 2022
@calebdoxsey calebdoxsey requested a review from a team as a code owner June 16, 2022 19:59
@calebdoxsey calebdoxsey requested a review from wasaga June 16, 2022 19:59
if err != nil {
return nil, err
return ports, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Why return ports here?

if err != nil {
return nil, err
return ports, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Same; not all ports would be allocated yet we return them?

@calebdoxsey
Copy link
Contributor Author

Still broken.

@calebdoxsey calebdoxsey deleted the cdoxsey/better-allocate-port branch June 17, 2022 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI/CD and release automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants