Re: File download results in "110: Connection timed out" on nginx; Download continues until Linux Kernel 'tcp_fin_timeout' reached

2016-01-29 Thread Tolga Ceylan
This looks normal. Definition of 'send_timeout' is in: http://nginx.org/en/docs/http/ngx_http_core_module.html#send_timeout "Sets a timeout for transmitting a response to the client. The timeout is set only between two successive write operations, not for the transmission of the whole response. I

echo-nginx-module and HTTP2

2016-01-29 Thread Kurt Cancemi
Hello, I was doing some debugging and though I haven't found a fix. The problem is in the ngx_http_echo_client_request_headers_variable() function c->buffer is NULL when http v2 is used for some reason (internal to nginx). -- Kurt Cancemi https://www.x64architecture.com -- -- Kurt Cancemi http

Re: echo-nginx-module and HTTP2

2016-01-29 Thread Yichun Zhang (agentzh)
Hello! On Thu, Jan 28, 2016 at 11:19 PM, A. Schulze wrote: > I could not support with patches but would do some beta testing. > Thanks. > Just to have ask: > disabling http2 for a location is not possible, isn't it? > Nope. Regards, -agentzh ___ ngi

File download results in "110: Connection timed out" on nginx; Download continues until Linux Kernel 'tcp_fin_timeout' reached

2016-01-29 Thread Markus Bukowski
Hello everyone, when trying to download a static file using curl with a limit rate of 4000 (to simulate slow consumers) the download aborts after a certain time. A workaround to make that work is to increase the send_timeout to 3600. Nevertheless I would like to understand the behaviour and hope t

Re: proxy_cache_lock allow multiple requests to remote server in some cases

2016-01-29 Thread Maxim Dounin
Hello! On Thu, Jan 28, 2016 at 07:13:11PM -0500, jeeeff wrote: > My understanding of proxy_cache_lock is that only one request should be > passed to the proxied server for a given uri, even if many requests from the > same uri/key are hitting nginx while it is being refreshed. > > When the cache

Re: How to check which directive actually delivers the files?

2016-01-29 Thread atulhost
To server static files from nginx use the below configs inside serverblock of nginx, location ~* \.(js|css|png|jpg|jpeg|gif|ico|eot|otf|ttf|woff)$ { access_log off; log_not_found off; expires 30d; } and use symbol "|" without quote and extension name to add more static file or extension types. S