Enabled chunked transfers in LFS #10011

Open
opened 2025-11-02 08:55:42 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ryank231231 on GitHub (Dec 24, 2022).

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: chunked header from the server in 4140f638e9/tq/basic_upload.go (L58-59) even though HTTP/1.1 says this isn't required.

Screenshots

No response

Originally created by @ryank231231 on GitHub (Dec 24, 2022). ### 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: chunked` header 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_
GiteaMirror added the type/proposaltype/featuretopic/lfs labels 2025-11-02 08:55:42 -06:00
Author
Owner

@Zarpyk commented on GitHub (May 7, 2024):

Is there some workaround for this "error" or it only can be solve by removing cloudflare as a proxy?

@Zarpyk commented on GitHub (May 7, 2024): Is there some workaround for this "error" or it only can be solve by removing cloudflare as a proxy?
Author
Owner

@shadeov commented on GitHub (Jul 4, 2024):

Please!

@shadeov commented on GitHub (Jul 4, 2024): Please!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10011