Skip to content

HTTP: Prevent callbacks during HTTPManager shutdown to avoid use-after-free - #100

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/http-shutdowncallbackfix
Open

HTTP: Prevent callbacks during HTTPManager shutdown to avoid use-after-free#100
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/http-shutdowncallbackfix

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-P0. The issue was that: HTTP request callback executes during shutdown, causing access violation by referencing already destroyed objects via std::function closure.

  • Added a flag to HTTPRequest to skip the completion callback.
  • Set the skip callback flag to true when a request is completed during HTTPManager shutdown.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2250221

Not quite right? Click here to continue debugging with Seer.

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.

0 participants