Skip to content

Conversation

@karlseguin
Copy link
Collaborator

The implementation here is similar how the TCP server behaves: keeping track of which I/O events are in-flight and only shutting down when there are none.

This has been my white whale! 🤞

The Request object now exists on the heap, allowing it to outlive whatever is
making the request (e.g. the XHR object). We can now wait until all inflight IO
events are completed before clearing the memory.

This change fixes the crash observed in:
#667
@karlseguin karlseguin force-pushed the clean_xhr_shutdown branch from 82b2e8c to e339ee3 Compare May 30, 2025 23:22
@karlseguin karlseguin merged commit 527579a into main May 30, 2025
11 checks passed
@karlseguin karlseguin deleted the clean_xhr_shutdown branch May 30, 2025 23:51
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2025
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.

2 participants