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

[iOS] prevent "No Space Left on Device" error when hundreds of request are made #520

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IcoDeveloper
Copy link

@IcoDeveloper IcoDeveloper commented Nov 16, 2023

If hundreds of request are made in a short period of time, e.g. syncing huge amount data to device. We run into an "No Space Left on Device" error which seems to come from to many open, not invalidated NSURLSessions.

I looked into the original AFNetworking library code which reverted the change of dispatching the invalidation of session async.
AFNetworking/AFNetworking@2163a8b

Also fixing memory leaks in upload and download file request.

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.

1 participant