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

added local_addr() to listeners to display random port numbers #2473

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

garikAsplund
Copy link
Contributor

@garikAsplund garikAsplund commented Apr 25, 2024

Also had to move some logging info out of run and into serve and serve_tls functions since the thread is blocking. An alternative would be to spawn a new thread but this seemed to work and is the most straightforward approach.

I feel like it'd be good to add tests but I'm not exactly sure the best way to go about that. If anyone has guidance there or feedback for potential issues with this modification please let me know.

Closes #2471

Screenshot 2024-04-25 at 12 06 43 PM

@lann
Copy link
Collaborator

lann commented Apr 25, 2024

Thanks! I just pushed an update to dedupe a bunch of stuff I noticed while reviewing. lgtm!

@lann lann requested a review from itowlson April 25, 2024 20:13
@lann
Copy link
Collaborator

lann commented Apr 25, 2024

I guess since I made a significant change here too I'd better get a neutral 3rd party to review as well 🙂

@lann lann merged commit 2806090 into fermyon:main Apr 26, 2024
17 checks passed
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.

spin up --listen localhost:0 should log the actual bound port number
3 participants