Skip to content

Improve behaviour of serve --open on listening errors #946 #988

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

silyevsk
Copy link

@silyevsk silyevsk commented May 12, 2025

This addresses issue #946, but not completely fixes it:

  • for http and rustls, the page will open if and only if listening succeeds
  • for native-tls, the page will never open

I'm not sure this is a good solution: axum-server doesn't accept listener for native-tls and so it's not possible to do the same change as for http/rustls. We can make this change only for http/rustls and leave opening the page as before for native-tls, but that would complicate the code.

silyevsk added 2 commits May 12, 2025 17:56
This addresses issue trunk-rs#946, but not completely fixes it:
 - for http and rustls, the page will open if and only if listening succeeds
 - for native-tls, the page will not open
@silyevsk silyevsk marked this pull request as ready for review May 13, 2025 06:28
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.

1 participant