Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Revert hypercorn binding to privileged ports#9012

Merged
simonrw merged 1 commit into
masterfrom
revert-hypercorn-priviliged-port-binding
Aug 29, 2023
Merged

Revert hypercorn binding to privileged ports#9012
simonrw merged 1 commit into
masterfrom
revert-hypercorn-priviliged-port-binding

Conversation

@simonrw
Copy link
Copy Markdown
Contributor

@simonrw simonrw commented Aug 29, 2023

Motivation

When binding hypercorn on privileged ports, if one of the ports is not available the entire hypercorn server will fail to bind, leaving LocalStack in a terminal failure state. This state is not caught in a user friendly way (the background thread dies leaving a traceback).

Changes

  • This reverts commit 8246af9.
    • allow hypercorn to only bind on unprivileged ports, and revert to using TCP proxies for unprivileged ports, meaning that at least hypercorn should be able to bind to something even if the proxies fail

@simonrw simonrw self-assigned this Aug 29, 2023
@simonrw simonrw requested a review from alexrashed August 29, 2023 15:12
@simonrw simonrw added the semver: patch Non-breaking changes which can be included in patch releases label Aug 29, 2023
Copy link
Copy Markdown
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this! 🚀
It's a pity we have to revert this, but we'll come back to it!

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 80.776% (-0.003%) from 80.779% when pulling 7b4b4a4 on revert-hypercorn-priviliged-port-binding into 43133b8 on master.

@github-actions
Copy link
Copy Markdown

LocalStack Community integration with Pro

       2 files         2 suites   1h 21m 30s ⏱️
2 152 tests 1 674 ✔️ 478 💤 0
2 153 runs  1 674 ✔️ 479 💤 0

Results for commit 7b4b4a4.

@simonrw simonrw merged commit c1414b6 into master Aug 29, 2023
@alexrashed alexrashed deleted the revert-hypercorn-priviliged-port-binding branch November 28, 2023 13:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants