VKCOM / nginx-quic

151 stars 15 forks source link

Slow speed upload file #3

Open BohdanVovkotrub opened 2 years ago

BohdanVovkotrub commented 2 years ago

Hi!

I use nginx-quic with "proxy_pass" for nodejs server http://localhost:5000 I upload a large file to this by method="POST" enctype="multipart/form-data".

For uploading a large files I use busboy at NodeJS and I add to nginx.conf :

client_max_body_size 0;
proxy_request_buffering off;

All is work! But I have HTTP/3 is slowly than HTTP/1.1

When I try to upload file 32 Mb via HTTP/1.1, this file uploads aproxymaly for 5 seconds and every chunk size is about ~65000 bytes

When I try to upload this file via HTTP/3, file uploads elapsing aproxymaly 30 seconds and every chunk size has about ~2000 bytes.

Uploading via HTTP/3 more slowly than HTTP/1.1 because HTTP/3 has more count of chunks and this chunks is more small that chunks in HTTP/1.1.

Can I change size of chunks for HTTP/3 ?