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

Refactor DebuginfodServer initialization error handling #63873

Open
mysterymath opened this issue Jul 14, 2023 · 0 comments
Open

Refactor DebuginfodServer initialization error handling #63873

mysterymath opened this issue Jul 14, 2023 · 0 comments

Comments

@mysterymath
Copy link
Contributor

mysterymath commented Jul 14, 2023

Currently, DebuginfodServer crashes the program in its constructor if the HTTP Server cannot be set up (i.e., if some aspect of setting up the wrapped HTTPServer instance fails). This responsibility more properly falls on the program instantiating the DebuginfodServer instance. Accordingly, this should be changed to use a factory method, so that the instantiating program can decide how to handle failure.

DebuginfodServer::DebuginfodServer(DebuginfodLog &Log,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant