itinance / itinance/react-native-fs

Error with concurrent downloads: Error Domain=NSPOSIXErrorDomain No space left on device

Open
#522 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to download a large number of files, I find that if i do too many concurrent calls to RNFS.downloadFile I get the following error:

```
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
Error Domain=NSPOSIXErrorDomain Code=28 "No space left on device" UserInfo={_kCFStreamErrorCodeKey=28, _kCFStreamErrorDomainKey=1}
```

I can stagger downloads to fix the problem however this means that files will not download in the background.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.