Hi j, Yes, Jetty can send data back after it received all data, but the reasons why I want to use current design are 1. No buffering on server side 2. Performance would be much better if sending and receiving happen at the same time. I guess your suggestion is right, I probably should look into HTTP2 and Websockets. Thanks again for your help! :) Lingby ling - How to...
Hi j, Thanks very much for your reply! I configured my Nginx with your configuration, then I run netcat to check received data as you suggested. As a result I did see 30M data are sent to 8081. But I think Nginx works in this situation because the server(8081) doesn't send any data back at the same time. As I mentioned perviously, on my server side, when I don't return any data back, Nginx canby ling - How to...
Hi j, I found something interesting, when I set: proxy_request_buffering off; proxy_buffering off; Ngnix always proxied about 10M data. But when I set : proxy_request_buffering on; proxy_buffering off; Nginx always proxied about 18M data.I guess the issue is about request buffering. Do you have any suggestions? Thanks! With proxy_request_buffering on, I also tried to increase clientby ling - How to...
Yes, currently my location configurations is like this: location / { proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Connection ""by ling - How to...
Hi j, Thanks for your reply! I tried to update jetty version to 9.4.19, but still got same result(9.4.20 causes error in my environment). I think it's not caused by Jetty, because when client sends request to server directly without a proxy, it can process 1G data. Also, inspired by thread: https://forum.nginx.org/read.php?2,227175,227184#msg-227184, I found that on server side, if I don'tby ling - How to...
Hi there, I use Nginx as a reverse proxy. My client sends 20M data to Nginx, and Nginx received all of them (I can view 20M file in /var/lib/nginx). But when Nginx tries to proxy the 20M data to upstream server, only half of them are sent. My server's function is reading a file while returning the encoded file. Server starts to reply before it receives all of the request body for efficiency puby ling - How to...