Re: inlining

2014-02-14 Thread Pankaj Mehta
These should be covered during the link time optimisations. Look here for gcc: http://gcc.gnu.org/wiki/LinkTimeOptimization And here for Visual Studio : http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx Cheers Pankaj On 14 February 2014 23:24, atarob wrote: > > On Friday, February 14, 20

Re: inlining

2014-02-14 Thread atarob
> On Friday, February 14, 2014 04:59:26 PM atarob wrote: > > Looking through the codebase, I see a lot of very short helper like > > functions that are defined in .c files with prototypes in .h files. > This > > means that the compiler cannot inline them outside of that .c file. > > Am I > > wrong?

Re: inlining

2014-02-14 Thread Styopa Semenukha
I suppose they will be inlined at -O2 level: http://linux.die.net/man/1/gcc -finline-small-functions Integrate functions into their callers when their body is smaller than expected function call code (so overall size of program gets smaller). The compiler heuristically decides which functions ar

Re: Proxy cache passes GET instead of HEAD to upstream

2014-02-14 Thread Valentin V. Bartenev
On Friday 14 February 2014 17:11:37 jove4015 wrote: [..] > Is there any way to set up the proxy to the upstream so that it proxies HEAD > requests as HEAD requests, and GET requests as normal, and still caches > responses as well? Ideally it would cache all GET responses, check against > the cache

Proxy cache passes GET instead of HEAD to upstream

2014-02-14 Thread jove4015
I'm trying to figure out how to get Nginx to proxy cache HEAD requests as HEAD requests and I can't find any info on google. Basically, I have an upstream server in another datacenter, far away, that I am proxying requests to. I'm caching those requests, so the next time the request comes in, we

inlining

2014-02-14 Thread atarob
Looking through the codebase, I see a lot of very short helper like functions that are defined in .c files with prototypes in .h files. This means that the compiler cannot inline them outside of that .c file. Am I wrong? How is that not a performance hit? Ata. Posted at Nginx Forum: http://foru

Retrying proxy_pass on connection failure or similar

2014-02-14 Thread Kevin Burke
Hello, I was wondering if proxy_pass has any ability to retry ECONNREFUSED, or a connection timeout, or similar? It looks like proxy_next_upstream is fairly close to what I want, though I would rather not configure a second server; I just want the initial request to be more robust. Similarly the

headers_in_hash

2014-02-14 Thread atarob
Creating a module, I want to read in from config desired http header fields. Then, during config still, I want to get the struct offset for the fields that have dedicated pointers in the header_in struct. It seems that when I access headers_in_hash from the main config, it is uninitialized. I can

Nginx not passing http request to backend server

2014-02-14 Thread verofei
Hi, I have configured Nginx as a reverse-proxy to pass http requests to backend servers. When i try to see the domains thay all show me the default page of Nginx. The config file is in /etc/nginx/conf.d Theese are the entries that i have for one of the domains server { listen 80; server_nam

Compile error with OpenSSL source on Solaris 11 sparc

2014-02-14 Thread sebor
Hi. My system: uname -a: SunOS web-srv 5.11 11.1 sun4v sparc sun4v My configure line: /configure --prefix=/opt/nginx --group=webservd --user=webservd --with-cc-opt='-I ../pcre-8.34' --with-cpu-opt=sparc64 --with-pcre=../pcre-8.34 --with-zlib=../zlib-1.2.8 --with-http_sub_module --with-http_gzip_sta

Re: Mmm.. Subrequests anyone ?

2014-02-14 Thread Larry
Many thanks I will dig into it :) See you Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247521,247554#msg-247554 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Proxy pass location inheritance

2014-02-14 Thread Maxim Dounin
Hello! On Thu, Feb 13, 2014 at 06:43:08PM +, Brian Hill wrote: > Hello, we are using NGINX to serve a combination of local and > proxied content coming from both an Apache server (mostly PHP > content) and IIS 7.5 (a handful of third party .Net > applications). The proxy is working properl

Re: correct usage of proxy_set_header?

2014-02-14 Thread Maxim Dounin
Hello! On Thu, Feb 13, 2014 at 05:34:44PM -0500, eN_Joy wrote: > Hello all! > I have configured a location that acts list a transparent proxying cache: > > > > location /get > { > set $hostx ""; > set $addrs ""; > if ( $uri ~ "^/get/htt

Re: acess log over nfs hanging

2014-02-14 Thread Maxim Dounin
Hello! On Thu, Feb 13, 2014 at 03:42:22PM -0200, Guilherme wrote: > Anton, > > I already had the same issue logging to NFS, but I'm curious about why > nginx hang in some nfs failures. Log phase is the last, if there is no post > action, so why nginx stop responding in some NFS failures? Becaus

Re: 500 error when posting, no message in error logs

2014-02-14 Thread Igor Sysoev
On Feb 13, 2014, at 23:23 , offthedeepnd wrote: > Hi All, > > I'm running nginx 1.4.1 on OpenBSD 5.4 stable along with php and php-fpm > version 5.3.27 and mysql 5.1.70 on two systems. I'm trying to install > piwigo-2.6.1 and running into an issue on of of the systems as indicated by > the subje

Re: Re[2]: How to disable PHP output buffering

2014-02-14 Thread gaspy
OK, so I modified nginx and php5-fpm to talk on port 9000 and used tcpdump to see the traffic. It looks like it worked as packets arrived at 1 second intervals (the sleep(1) in my code). However in browser it was still the same. After more testing, it turns out there's something in my computer co

Re: Nginx 400 error

2014-02-14 Thread dinghm
upstream download { server 127.0.0.1:8001 weight=1; } server { listen 80; server_name 210.209.116.176 *.newlife-sh.com; access_log logs/download.log main; location /{ proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; # proxy_set_h

Nginx 400 error

2014-02-14 Thread dinghm
I use nginx proxy tomcat, but there have been many 400 error, about 10%. But do not use nginx, tomcat can normally handle this part of the request. This is my nginx configuration : user nobody; worker_processes 1; error_log logs/error.log; pid l