Skip to content

don't require executor parameter #438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

bryanlarsen
Copy link
Contributor

The fix for #433 (socket file leak) added an executor parameter. However, to get the fix, users have to call executor.abort_all(). So the primary motivation for this fix is so that all users get the fix even if they don't call abort_all().

The secondary motivation is to make the API nicer.

The fix for erebe#433 (socket file leak) added an executor parameter. However, to get
the fix, users have to call executor.abort_all(). So the primary motivation for
this fix is so that all users get the fix even if they don't call abort_all().

The secondary motivation is to make the API nicer.
@erebe erebe force-pushed the main branch 26 times, most recently from d2ad038 to dc345c0 Compare May 30, 2025 14:07
@erebe
Copy link
Owner

erebe commented May 30, 2025

I would avoid this one, as I really would like to pay the performace penality of joinSet only for people needing it.

I haven't had time to look to improve the executor interface. But it is possible to have the abort_all on drop. I just need to spend some time on it. I was busy merging the support of tls ECH to the server

@bryanlarsen
Copy link
Contributor Author

That's reasonable. In the meantime, would you accept just the impl Drop? That eliminates one foot gun for other users.

@erebe
Copy link
Owner

erebe commented May 31, 2025

this is going to be more pernicious because doing

let exec = JointSetExecutor() 
exec.spawn(task)
{
let going_to_abort = exec.clone()
}
// task is aborted

it needs a weak ref on tve executor

@erebe
Copy link
Owner

erebe commented Jun 1, 2025

If you rebase on Head, the JoinSetTokioExecutor should now abort all the task on drop correctly

@bryanlarsen
Copy link
Contributor Author

works for me.

@bryanlarsen bryanlarsen closed this Jun 2, 2025
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