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

Raise error from waitress if not shutdown #1790

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

SaptakS
Copy link
Member

@SaptakS SaptakS commented Oct 21, 2023

Fixes #1787

This seems to be a non-linux issue. I was unable to reproduce the error in linux, but got the error when testing in mac. In mac, when the server is stopped, for some reason (probably a thread waiting) waitress tries the creation function and raises error, which causes the modal to show. When reviewing the waitress PR, I and @mig5 had a similar discussion. I think we might have misunderstood why the code example we followed was using the was_shutdown attribute. I think this might be exactly why, since in some cases the create server is called while it's getting shutdown, and in that time the error doesn't need to be raised/shown.

@SaptakS SaptakS requested a review from mig5 October 21, 2023 13:15
Copy link
Collaborator

@mig5 mig5 left a comment

Choose a reason for hiding this comment

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

Solves it for me on macOS too!

Haven't tried on Windows, but if affected. hopefully sorts it there too.

@mig5 mig5 merged commit f880a93 into main Oct 23, 2023
8 checks passed
@mig5 mig5 deleted the fix-waitress-stop-error branch October 23, 2023 03:45
@mig5 mig5 added this to the 2.6.1 milestone Oct 23, 2023
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.

"There was a problem starting the web server" when stopping a server
2 participants