Skip to content

Dispose browser context in CloseTarget & fix graceful shutdown - #351

Merged
maltoe merged 1 commit into
mainfrom
fix/dispose-browser-context-in-close-target
Oct 12, 2026
Merged

maltoe merged 1 commit into
mainfrom
fix/dispose-browser-context-in-close-target

Conversation

@maltoe

@maltoe maltoe commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Patch addresses several issues with the "graceful shutdown".

Patch addresses several issues with the "graceful shutdown".

- Don't use `disposeOnDetach` anymore, may fix #349
- ... instead dispose browser context explicitly in CloseTarget, may fix #350
- Fix broken shutdown handling in Channel: weirdly missing the trap, like
  this is it can't have ever worker, but I'm sure it worked at some point
- Fix broken shutdown handling in SessionPool: We must actually do handle
  the shutdown now (as we have no faith in `disposeOnDetach` anymore),
  hence we must capture the channel pid in the init to avoid calling
  the supervisor during shutdown
@maltoe
maltoe force-pushed the fix/dispose-browser-context-in-close-target branch from d786ff9 to 6159570 Compare September 28, 2026 07:07
@maltoe
maltoe requested a review from andreasknoepfle October 2, 2026 18:43
@maltoe
maltoe merged commit 3510ee5 into main Oct 12, 2026
4 checks passed
@maltoe
maltoe deleted the fix/dispose-browser-context-in-close-target branch October 12, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant