Re: Upstream HTTP/2 support

2017-07-09 Thread Frank Liu
This subject has been discussed here: https://trac.nginx.org/nginx/ticket/923 I think it is a good idea to have this support. On Sun, Jul 9, 2017 at 7:55 PM, motor wrote: > The following post is based on the assumptions that 1. upstream HTTP/2 > support is not available in nginx at the moment, a

Upstream HTTP/2 support

2017-07-09 Thread motor
The following post is based on the assumptions that 1. upstream HTTP/2 support is not available in nginx at the moment, and 2. said feature is not firmly excluded from nginx's future road map :) We've been internally using an nginx patch (authored by me) which provides this feature in our nginx in

Re: Flushing responses in nginx modules

2017-07-09 Thread Zhang Chao
Hello! You mustn’t use standard sleep function for it will block Nginx’s events loop, alternatively, you need to put your write event to a timer, set the proper handler when the timer expires. BTW, you should always check the return value of ngx_http_send_header and ngx_http_output_filter. On 10

Nginx Proxy seems to send twice the same request to the backend

2017-07-09 Thread Arnaud Le-roy
Hello, i encountered a strange behaviour with nginx, my backend seems to receive twice the same request from nginx proxy, to be sure that it's not the client that send two request i have had an uuid params to each request. when the problem occurs in nginx log i found one request in success in

Re: NGINX stale-while-revalidate cluster

2017-07-09 Thread Peter Booth
stale-while-revalidate is awesome, but it might not be the optimal tool here. It came out of Yahoo!, the sixth largest website in the world, who used a small number of caching proxies. In their context most content is served hot from cache. A cloud deployment typically means a larger number

Re: Flushing responses in nginx modules

2017-07-09 Thread A. Schulze
Am 09.07.2017 um 19:43 schrieb Johan Andersson: > Actually I was flushing each response, so I expected each "hello world" > message to appear one after the other, with one second pause between them. You may have a look at https://github.com/openresty/echo-nginx-module As far as I know they solv

Flushing responses in nginx modules

2017-07-09 Thread Johan Andersson
Hi everyone, I have some issues writing my nginx modules. I am on Debian Stretch, installed nginx with the default configuration, and took the hello_world module. It works without a hitch. Then I changed the handler to send three "hello world" responses, and sleep for one second between each