Welcome! Log In Create A New Profile

Advanced

Re: Proxy Request buffering not working as expected

Mohammad Puyandeh via nginx
November 06, 2017 10:46AM
>> If you report that nginx starts to send the content to the back-end
>> before nginx has received all of the content from the client, then
>> proxy_request_buffering is not working as intended.
Yes, that's what I am reporting, I put together a very simple tornado
(python) script, I used both tcp connection and a unix socket, no
differences
I used curl and my own upload python client, result were the same

>> When I try a quick test here, nginx receives the full content from the
>> client before it tries to connect to the back-end.
I prepared a minimal working sample which is easy to run and test
this is python script: https://paste.ubuntu.com/25903714/
(see lines 16 to 23 to know how to run it, it's so simple, you need a
Linux based OS and python)
and this is nginx config: https://paste.ubuntu.com/25903719/

with the above python client you can easily produce the problem, it will
print chunk sizes along with the number of requests, use a file larger
than 3M to get better results
to make it complete, here is an example to upload file using curl: curl
--request POST --data-binary "@/file/path" http://localhost/upload/

This is my first time that I'm using this service, So I thought putting
codes somewhere else is cleaner and better

_______________________________________________
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: 260
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