Welcome! Log In Create A New Profile

Advanced

Nginx http-bind eJabbered pending requests Chrome

June 10, 2013 09:53PM
Hi,
I'm working on a server where nginx runs as proxy on Apache
It proxies php files & ejabbered requests & serves static files

Everything was fine until a few weeks, and only on Chrome:
when http-bind is pending, it makes all further requests pending also, thus all images called after the http-bind request are "pending" until ejabbered answers (about 1.5 min)

Any idea?

here part of the conf:
nginx/0.7.67

user www-data;
worker_processes 8;
worker_cpu_affinity 0001 0010 0011 0100 0101 0110 0111 1000;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
multi_accept on;
}

http {

include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
server_tokens off;
server_names_hash_bucket_size 128;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
add_header Access-Control-Allow-Origin *;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}


site:
server {
bla bla
location /http-bind/ {
tcp_nodelay on;
keepalive_timeout 55;
proxy_pass http://chatdomain:5280/http-bind/;
}
}

server {
listen 80;
server_name STATICSDOMAIN;

# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/nginx-default;
}

location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|srt|swf|pdf)$ {
root /PATHTOSTATICS;
expires 30d;
}
}

conf.d/proxy.conf:
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 20m;
client_body_buffer_size 128k;
client_header_buffer_size 64k;
proxy_connect_timeout 180;
proxy_send_timeout 180;
proxy_read_timeout 180;
proxy_buffer_size 64k;
proxy_buffers 32 64k;
proxy_busy_buffers_size 128k;
large_client_header_buffers 8 64k;
SubjectAuthorPosted

Nginx http-bind eJabbered pending requests Chrome

soisitaJune 10, 2013 09:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 180 on December 21, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready