Skip to content

Fix jm.names and jm.activeWorkees leak#385

Merged
mholt merged 1 commit into
caddyserver:masterfrom
u5surf:fix_jm_leaks
May 26, 2026
Merged

Fix jm.names and jm.activeWorkees leak#385
mholt merged 1 commit into
caddyserver:masterfrom
u5surf:fix_jm_leaks

Conversation

@u5surf
Copy link
Copy Markdown
Contributor

@u5surf u5surf commented May 26, 2026

In my investigation of the caddy’s issue.
caddyserver/caddy#7366

I found potential resoure leaks in jobmanager.worker if the next.Job causes panic, jm.names is not deleted, activeWorker counter is not decremented.

Signed-off-by: Y.Horie <u5.horie@gmail.com>
Copy link
Copy Markdown
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, wow, I don't think I ever saw/noticed that original issue. Thanks for bringing a patch to my attention here. I think this makes sense, let's give it a try. Thank you!

@mholt mholt merged commit 7475593 into caddyserver:master May 26, 2026
6 checks passed
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.

2 participants