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

request help: large file upload not work #2160

Open
RedBlackWolf opened this issue Feb 15, 2024 · 2 comments
Open

request help: large file upload not work #2160

RedBlackWolf opened this issue Feb 15, 2024 · 2 comments
Labels

Comments

@RedBlackWolf
Copy link

RedBlackWolf commented Feb 15, 2024

Issue description

I configured an apisixroute and connected it to the apache service with backends
Normal operation is fine, but it does not work normally when uploading large files (> 2GB).
It looks like timeout and it's weird. Applying request_buffering: false to the proxy-control to plugin will cause more errors. Is there a solution?

apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
  name: route
spec:
  http:
  - name: route-upload
    match:
      hosts:
      - aaa.com
      paths:
      - /upload/*
    upstreams:
    - name: web-upload
    timeout:
      connect: "8h"
      send: "8h"
      read: "8h"
    plugins:
    - name: proxy-control
      enable: true
      config:
        request_buffering: false

Environment

  • apisix ingress-controller 1.8.0
  • kubectl 1.28.2 (output of kubectl version):
  • Rocky Linux release 8.8
@RedBlackWolf RedBlackWolf changed the title request help: request help: large file upload not work Feb 15, 2024
@bigfish02
Copy link
Contributor

apisix has limiting for request body size. you need to use client-control plugin to change the max size of the request body.

https://apisix.apache.org/docs/apisix/plugins/client-control/

Copy link

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants