From b3dd21353863f7b617bf5b3ced233c9c4c85c0d4 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 8 Sep 2024 11:17:10 +0200 Subject: [PATCH] Improved the automatic update check for slow connections (#129) --- app/MindWork AI Studio/Tools/RustService.cs | 2 +- app/MindWork AI Studio/wwwroot/changelog/v0.9.6.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Tools/RustService.cs b/app/MindWork AI Studio/Tools/RustService.cs index 5af7726..941cea6 100644 --- a/app/MindWork AI Studio/Tools/RustService.cs +++ b/app/MindWork AI Studio/Tools/RustService.cs @@ -224,7 +224,7 @@ public sealed class RustService : IDisposable { try { - var cts = new CancellationTokenSource(TimeSpan.FromSeconds(16)); + var cts = new CancellationTokenSource(TimeSpan.FromSeconds(45)); var response = await this.http.GetFromJsonAsync("/updates/check", this.jsonRustSerializerOptions, cts.Token); this.logger!.LogInformation($"Checked for an update: update available='{response.UpdateIsAvailable}'; error='{response.Error}'; next version='{response.NewVersion}'; changelog len='{response.Changelog.Length}'"); return response; diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.6.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.6.md index b3c8b07..9bba7f4 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.6.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.6.md @@ -1,2 +1,3 @@ # v0.9.6, build 181 (2024-09-08 09:xx UTC) -- Fixed a bug where you couldn't send results to the synonym assistant. \ No newline at end of file +- Fixed a bug where you couldn't send results to the synonym assistant. +- Improved the automatic update check by increasing the timeout for really slow connections. \ No newline at end of file