Open IcoDeveloper opened 1 year ago
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. https://github.com/AFNetworking/AFNetworking/commit/2163a8b750daf5e582031e929a0d5e28b63da43a
Also fixing memory leaks in upload and download file request.
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. https://github.com/AFNetworking/AFNetworking/commit/2163a8b750daf5e582031e929a0d5e28b63da43a
Also fixing memory leaks in upload and download file request.