File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Microsoft.NET.Build.Containers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,12 @@ public Registry(Uri baseUri)
29
29
}
30
30
31
31
/// <summary>
32
- /// The max chunk size for patch blob uploads. By default the size is 5 MB.
32
+ /// The max chunk size for patch blob uploads.
33
33
/// </summary>
34
34
/// <remarks>
35
- /// 5 MB is chosen because it's the limit that works with all registries we tested -
36
- /// notably Amazon Elastic Container Registry requires 5MB chunks for all but the last chunk.
35
+ /// This varies by registry target, for example Amazon Elastic Container Registry requires 5MB chunks for all but the last chunk.
37
36
/// </remarks>
38
- public readonly int MaxChunkSizeBytes => 5248080 ; //5 * 1024 * 1024 ;
37
+ public readonly int MaxChunkSizeBytes => IsAmazonECRRegistry ? 5248080 : 1024 * 64 ;
39
38
40
39
/// <summary>
41
40
/// Check to see if the registry is for Amazon Elastic Container Registry (ECR).
You can’t perform that action at this time.
0 commit comments