From 6b4a95cdb1f5bca59c619dfda912e3d9c874d8b1 Mon Sep 17 00:00:00 2001 From: Pavel Iakovenko Date: Mon, 24 Jan 2022 13:57:05 -0500 Subject: [PATCH] Use default 8Mb chunking for the FileContainer uploads (#1626) --- src/Runner.Plugins/Artifact/FileContainerServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runner.Plugins/Artifact/FileContainerServer.cs b/src/Runner.Plugins/Artifact/FileContainerServer.cs index 208b9e4c2..c2b8fb3a2 100644 --- a/src/Runner.Plugins/Artifact/FileContainerServer.cs +++ b/src/Runner.Plugins/Artifact/FileContainerServer.cs @@ -469,7 +469,7 @@ namespace GitHub.Runner.Plugins.Artifact try { uploadTimer.Restart(); - using (HttpResponseMessage response = await _fileContainerHttpClient.UploadFileAsync(_containerId, itemPath, fs, _projectId, cancellationToken: token, chunkSize: 4 * 1024 * 1024)) + using (HttpResponseMessage response = await _fileContainerHttpClient.UploadFileAsync(_containerId, itemPath, fs, _projectId, cancellationToken: token)) { if (response == null || response.StatusCode != HttpStatusCode.Created) {