title: nginx and uwsgi very large files upload (>3Gb)
body: <p>maybe someone know what to do. I'm trying to upload files greater than 3Gb. No problems, if I upload files up to 2Gb with next configs:</p>
  
  <p>Nginx:</p>
  
  <pre><code>client_max_body_size 5g;
  client_body_in_file_only clean;
  client_body_buffer_size 256K;
  
  proxy_read_timeout 1200;
  keepalive_timeout 30;
  uwsgi_read_timeout 30m;
  </code></pre>
  
  <p>UWSGI options:</p>
  
  <pre><code>harakiri 60
  harakiri 1800
  socket-timeout 1800
  chunked-input-timeout 1800
  http-timeout 1800
  </code></pre>
  
  <p>When i upload big (almost 4Gb) file, it uploads ~ 2-2.2Gb and stops with error:</p>
  
  <pre><code>[uwsgi-body-read] Timeout reading 4096 bytes. Content-Length: 3763798089 consumed: 2147479552 left: 1616318537
  </code></pre>
  
  <p>Which params i should use? </p>