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

Increase retry timeout when deleting files or folders #3491

Open
2 tasks done
pauby opened this issue Jul 31, 2024 · 0 comments
Open
2 tasks done

Increase retry timeout when deleting files or folders #3491

pauby opened this issue Jul 31, 2024 · 0 comments

Comments

@pauby
Copy link
Member

pauby commented Jul 31, 2024

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my request.

Is Your Feature Request Related To A Problem? Please describe.

This is related to issue #3490.

When Chocolatey CLI tries to delete a file or folder, it waits for 300ms before trying again 3 times and then taking action.

Describe The Solution. Why is it needed?

Chocolatey CLI should increase the timeout to wait before retrying and / or increase the number of retry attempts. This may help in situations where AV is holding a file open for scanning.

I would suggest the wait is 1s, and we retry 5 times for a total of a 5s delay. As these situations are uncommon, a 5s delay is reasonable. Happy to hear other views.

Additional Context

No response

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant