Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xquic 下载大文件会消耗同等文件大小的内存 #1943

Open
fbwfbi opened this issue Jun 21, 2024 · 1 comment
Open

xquic 下载大文件会消耗同等文件大小的内存 #1943

fbwfbi opened this issue Jun 21, 2024 · 1 comment

Comments

@fbwfbi
Copy link

fbwfbi commented Jun 21, 2024

Ⅰ. Issue Description

xquic 下载大文件会消耗同等文件大小的内存,无论是否开启 proxy_buffering,均会消耗大量内存;

Ⅱ. Describe what happened

配置 xquic server 块下载文件,后端可以是 proxy_pass 到另外的文件下载服务,或是使用自身的 root 方式指定本地文件,

Ⅲ. Describe what you expected to happen

修复该问题,当配置 proxy_buffering off 时,保持跟 https/http2 同样的行为,无论下载多大的文件,均不会把内存耗尽;

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. 通过 listen ip:port xquic 方式使用 xquic 监听器;
  2. 使用 proxy_pass 转向后端文件服务:
       location /download {
            proxy_pass  http://10.0.0.28:8000/ ;
        }

或是使用 root 指向本地文件下载

      location /download {
            root /path/to/download_files/;
            index default_file;
        }
  1. 使用 curl --http3-only 方式下载文件

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • tengine:3.1.0
  • xquic:1.7.2
  • tongsuo: 8.3.2
@fbwfbi
Copy link
Author

fbwfbi commented Jun 21, 2024

related to #1910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant