We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00d4ac4 commit 15ac293Copy full SHA for 15ac293
src/gui/folder.cpp
@@ -1151,7 +1151,11 @@ SyncOptions Folder::initializeSyncOptions() const
1151
opt._confirmExternalStorage = cfgFile.confirmExternalStorage();
1152
opt._moveFilesToTrash = cfgFile.moveToTrash();
1153
opt._vfs = _vfs;
1154
- opt._parallelNetworkJobs = account->isHttp2Supported() ? 20 : 6;
+
1155
+ const auto capsMaxConcurrentChunkUploads = account->capabilities().maxConcurrentChunkUploads();
1156
+ opt._parallelNetworkJobs = capsMaxConcurrentChunkUploads > 0
1157
+ ? capsMaxConcurrentChunkUploads
1158
+ : account->isHttp2Supported() ? 20 : 6;
1159
1160
// Chunk V2: Size of chunks must be between 5MB and 5GB, except for the last chunk which can be smaller
1161
const auto cfgMinChunkSize = cfgFile.minChunkSize();
0 commit comments