File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Microsoft.NET.Build.Containers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,13 @@ 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 64 KB.
33
- /// Amazon Elasic Container Registry (ECR) requires patch chunk size to be 5 MB except for the last chunk.
32
+ /// The max chunk size for patch blob uploads. By default the size is 5 MB.
34
33
/// </summary>
35
- public readonly int MaxChunkSizeBytes => IsAmazonECRRegistry ? 5248080 : 1024 * 64 ;
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.
37
+ /// </remarks>
38
+ public readonly int MaxChunkSizeBytes => 5 * 1024 * 1024 ;
36
39
37
40
/// <summary>
38
41
/// 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