upload timeout 100s->300s

This commit is contained in:
rootdarkarchon
2023-04-06 01:53:54 +02:00
parent 1e9d4998ce
commit e96c652e64
4 changed files with 6 additions and 4 deletions

Submodule MareAPI updated: 22346739d2...8a7640c1a1

View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<Authors></Authors>
<Company></Company>
<Version>0.8.18</Version>
<Version>0.8.19</Version>
<Description></Description>
<Copyright></Copyright>
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>

View File

@@ -213,7 +213,8 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
{
await _dalamudUtil.RunOnFrameworkThread(() => _ipcManager.PenumbraRemoveTemporaryCollection(Logger, applicationId, PlayerName!)).ConfigureAwait(false);
token.ThrowIfCancellationRequested();
await _dalamudUtil.RunOnFrameworkThread(() => _ipcManager.PenumbraSetTemporaryMods(Logger, applicationId, PlayerName!, _charaHandler?.GameObjectLazy?.Value.ObjectTableIndex(), moddedPaths, manipulationData)).ConfigureAwait(false);
await _dalamudUtil.RunOnFrameworkThread(() => _ipcManager.PenumbraSetTemporaryMods(Logger, applicationId, PlayerName!,
_charaHandler?.GameObjectLazy?.Value.ObjectTableIndex(), moddedPaths, manipulationData)).ConfigureAwait(false);
token.ThrowIfCancellationRequested();
}
@@ -425,7 +426,7 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
}
var appToken = _applicationCancellationTokenSource?.Token;
while ((!_applicationTask?.IsCompleted ?? false)
while ((!_applicationTask?.IsCompleted ?? false)
&& !downloadToken.IsCancellationRequested
&& (!appToken?.IsCancellationRequested ?? false))
{

View File

@@ -22,6 +22,7 @@ public class FileTransferOrchestrator : DisposableMediatorSubscriberBase
_mareConfig = mareConfig;
_serverManager = serverManager;
_httpClient = new();
_httpClient.Timeout = TimeSpan.FromSeconds(300);
_availableDownloadSlots = mareConfig.Current.ParallelDownloads;
_downloadSemaphore = new(_availableDownloadSlots);