Replies: 1 comment
-
Sorry for confusing code, not familiar with rust, actix yet 😭 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm new to rust and actix-web.
I made a simple api to watermark image.
Api gets image, watermark it and send it back.
The problem is when if request is aborted, the file I temporally saved doesn't get removed.
I tried everything to cleanup but failed.
the code is
the problem happens at
while let Some(chunk) = match field.try_next().await {
and not gets cleaned up at
println!("getting chunks fail");
section.I tried these methods.
I set timeout to 0 so it's not related to timeout. => Curious what happens how actix-web behaves when timeout is reached.
The server is giving 200 status code so I think there is no interrupted.
I found this error while stress testing the server for checking real use capacity. (CPU at 100%) => Doesn't seem to be the problem.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions