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

http, rest: improving segfault bugfix logic - optimisation #27519

Conversation

pablomartin4btc
Copy link
Member

As first commit of #27253 was already merged into 25.0 release branch (#27468), this PR represents the second commit of the original PR #27253, where the fix was split in 2 commits for clarity and reviewers benefit(1 with the fix and 1 with an enhancement of it).

Please for reference have a quick look at PRs mentioned above and check the description of this commit for the intention of this PR.

Non-functional optimisation: moving the logic up
in the stack, specifically into the constructor
of the HTTPRequest object, this way we catch the invalid uri earlier,
removing the exception handling from the rest enpoints as we catch
the exception raised from the constructor within the request
call back function where we return an http bad request to consumers.
@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

@fanquake
Copy link
Member

Why is this a new PR? You just need to rebase #27253.

@pablomartin4btc
Copy link
Member Author

Why is this a new PR? You just need to rebase #27253.

Ok, I was going close that one for clarity, but it's ok, I rebased #27253 already just waiting for the tests to finish running, label "needs rebase" wasn't removed automatically.

Happy to close this one.

@bitcoin bitcoin locked and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants