cloudflare / quiche

🥧 Savoury implementation of the QUIC transport protocol and HTTP/3
https://docs.quic.tech/quiche/
BSD 2-Clause "Simplified" License
9.4k stars 709 forks source link

chrome can't upload and download with quiche nginx(php7.4 with yii2) #538

Open haohetao opened 4 years ago

haohetao commented 4 years ago

chrome:version 81,83 quiche:quiche-81bc973,quiche-98757ca language:php7.4.6 with yii2 2.0.35 http3:h3-25,h3-27 export excel using kartik-v/yii2-grid when post upload and some downoad,the server is not response. it's happen on export data to excel file or post to upload file.

LPardue commented 4 years ago

Does this problem still exist? We'd need more information in order to troubleshoot, such as a minimal reproduction, and client and server logs.

haohetao commented 4 years ago

now is fine,using the latest version

haohetao commented 4 years ago

I build nginx version: nginx/1.16.1 (quiche-f6608a9) the problem again happen 2020/07/14 12:40:37 [warn] 32#32: *83 a client request body is buffered to a temporary file /usr/local/nginx/client_body_temp/0000000002, client: 192.168.31.3 图片 图片

junhochoi commented 4 years ago

2020/07/14 12:40:37 [warn] 32#32: *83 a client request body is buffered to a temporary file /usr/local/nginx/client_body_temp/0000000002, client: 192.168.31.3

Do you have proxy_request_buffering off; in your nginx.conf? See https://github.com/cloudflare/quiche/blob/master/extras/nginx/README.md#running

haohetao commented 4 years ago

client_body_buffer_size is the same as client_max_body_size to upload, but not require with http2

haohetao commented 4 years ago

proxy_request_buffering set fo off always exist problem,set client_body_buffer_size can solve. i used

    client_max_body_size 50m;
    client_body_buffer_size 50m;
    proxy_request_buffering off;
haohetao commented 4 years ago

The above is the chrome than the firefox 78,No matter how you do it, you can't upload it

haohetao commented 4 years ago

set proxy_request_buffering off,only proxy_pass is affected, not fastcgi_pass

haohetao commented 4 years ago

I'm add fastcgi_request_buffering off;