Skip to content

Memory leak when using Pure SSH for LFS #33448

Closed
@Danstiv

Description

@Danstiv

Description

Hello!
I tried to upload 1GB file through pure SSH connection, during the upload gitea occupied more and more memory.
After 920 megabytes of uploaded data, memory on the server was exhausted, and the upload was interrupted.
I also did not notice that during this process something was written to the disk.
Thus, probably gitea downloads the entire file to RAM if pure ssh is used.
When uploading over https, there is no such problem.

Gitea Version

1.23.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.47.1

Operating System

Ubuntu 24.04

How are you running Gitea?

docker

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions