Skip to content

HTTPRequest: Prevent crashes during shutdown by skipping callbacks - #88

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/skip-http-callbacks-on-shutdown
Open

HTTPRequest: Prevent crashes during shutdown by skipping callbacks#88
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/skip-http-callbacks-on-shutdown

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-JK. The issue was that: HTTP request completion callback executes with invalid captured context, causing Access Violation during std::function invocation.

  • Added a boolean parameter to Threaded_SetComplete and InvokeCallbackIfComplete to control callback invocation.
  • Modified HTTPManager to skip callbacks during shutdown to prevent use-after-free issues.
  • Ensured callbacks are invoked during normal operation.

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

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