Welcome! Log In Create A New Profile

Advanced

Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx
November 06, 2017 07:54AM
If I try to upload a 200M file using POST method, nginx will pass chunks
to back-end in less than 3 meg chunks


sample nginx config:

worker_processes auto;
user nginx;

events {

}

http {
    upstream servers {
        server                127.0.0.1:9999;
    }



 server {
   listen 80;
   client_max_body_size 200M;
   client_body_buffer_size 200M;

   server_name           localhost;

        location / {
            proxy_request_buffering   on;
            proxy_pass http://servers;
        }

 }
}


a quote about proxy_request_buffering  from docs:

"""When buffering is enabled, the entire request body is read from the
client before sending the request to a proxied server"""


but this behavior which I am facing is the opposite of this quote, any
ideas what's going on ?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx November 06, 2017 07:54AM

Re: Proxy Request buffering not working as expected

Francis Daly November 06, 2017 09:30AM

Re: Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx November 06, 2017 10:46AM

Re: Proxy Request buffering not working as expected

Francis Daly November 06, 2017 01:58PM

Re: Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx November 07, 2017 09:36AM

Re: Proxy Request buffering not working as expected

Francis Daly November 09, 2017 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready