zhendongcmss opened a new issue #5347:
URL: https://github.com/apache/apisix/issues/5347
### Issue description
upsteam is cepg rgw endpoint. apisix doesn't send data to upsteam when
upload big file.
Ctrl - C abort the upload command. the file is 1G and already upload 60%,
but upstream doesn't received any data. apisix cache the data.
```
[root@node3 zhendong]# s3cmd put 1G-1234567890 ls s3://onest-k8s/fake
--disable-multipart
upload: '1G-1234567890' -> 's3://onest-k8s/fake' [1 of 1]
701235200 of 1073741824 65% in 5s 121.13 MB/s^CSee ya!
```
### Environment
- apisix version (cmd: `apisix version`): 2.7
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd:
depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `luarocks
--version`):
### Steps to reproduce
confi.yaml
```
proxy_buffering: "off" # Enables or disables buffering of
responses from the proxied server.
proxy_request_buffering: "off" # Enables or disables buffering of a
client request body.
proxy_http_version: 1.1
client_max_body_size: 0
client_body_postpone_size: 0
```
routes
```
curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
"uri": "/*",
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:8881": 1
}
}
}'
```
### Actual result
access.log
access_log_format: "$remote_addr - $remote_user [$fmt_ms_time_local]
$http_host \"$request\" $status $body_bytes_sent $content_length $request_time
\"$http_referer\" \"$http_user_agent\" $http_x_request_id $http_x_amz_target
$upstream_addr $upstream_status $upstream_connect_time $upstream_header_time
$upstream_response_time"
127.0.0.1 - - [2021-10-27 14:27:36.004] 127.0.0.1:9080 "PUT /onest-k8s/fake
HTTP/1.1" 400 0 1073741824 2.347 "-" "-" - - - - - - -
### Error log
no
### Expected result
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]