Skip to content
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

feat: Added drop bomb to panic in case of request cancellation #14

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

xgroleau
Copy link
Collaborator

@xgroleau xgroleau commented Sep 20, 2023

Similar to what embassy does, we just panic if an ongoing request is dropped, way simpler than previous attempt and keeping the same api.

Also, would fix #11.

I think it's not sound if we share the actor in multiple threads (since it can be send). Only the request thread will panic, the actor could use the feed memory and cause UB. But since it's for embedded I feel like it's fine for now and it keeps it simple.

@xgroleau xgroleau merged commit 0c9472e into drogue-iot:main Sep 21, 2023
1 check 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.

Potential use after free using ActorRequest
2 participants