-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Enabled chunked transfers in LFS #22233
Copy link
Copy link
Closed
Labels
topic/lfstype/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Milestone
Metadata
Metadata
Assignees
Labels
topic/lfstype/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature Description
LFS in Gitea currently doesn't use chunked transfers, which causes the whole body to be read before it is stored. This means 100+ MB uploads will be blocked by Cloudflare.
It looks like the LFS client looks for the
Transfer-Encoding: chunkedheader from the server in https://github.com/git-lfs/git-lfs/blob/4140f638e9e305605f2e8cd941355340bb71fbf0/tq/basic_upload.go#L58-59 even though HTTP/1.1 says this isn't required.Screenshots
No response