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 exception handling for HTTP; Broadened exception handling for HTTPS #413

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

andy-maier
Copy link
Member

@andy-maier andy-maier commented Nov 14, 2023

For details, see the commit message.

Note that this PR does not address the problem reported in issue #397 because I think that error is raised by the HTTPS thread after start_http_server() has already returned.

@andy-maier andy-maier self-assigned this Nov 14, 2023
@andy-maier andy-maier linked an issue Nov 14, 2023 that may be closed by this pull request
@andy-maier andy-maier added this to the 1.5.0 milestone Nov 14, 2023
@coveralls
Copy link

coveralls commented Nov 14, 2023

Coverage Status

coverage: 37.628%. first build
when pulling 48c4787 on andy/add-http-exception-handling
into 2d7e110 on master.

Details:

* Added handling of IOError raised by start_http_server() in the HTTP case
  (it was already handled in the HTTPS case).

* For the HTTPS case, broadened the catching of IOError to now catch
  Exception, in order to make double sure that we catch everything, in order
  to investigate the issue with occasional ssl.SSLEOFError exceptions.

* Simplified and corrected the error message used for re-raising an exception
  raised by start_http_server() in the HTTPS case.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/add-http-exception-handling branch from 3d31b72 to 48c4787 Compare November 15, 2023 04:18
@andy-maier andy-maier changed the title Added handling of exceptions when starting the HTTP server Added exception handling for HTTP; Broadened exception handling for HTTPS Nov 15, 2023
@andy-maier
Copy link
Member Author

@Charles1000Chen agreed to the change, so I'll merge this PR in order to release a new beta version.

@andy-maier andy-maier merged commit 2ee819f into master Nov 15, 2023
12 checks passed
@andy-maier andy-maier deleted the andy/add-http-exception-handling branch November 15, 2023 04:24
@andy-maier andy-maier modified the milestones: 1.5.0, 1.5.0b3 Nov 15, 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.

Unhandled wsgiref exception in log
2 participants