# Nginx http-bind eJabbered pending requests Chrome

**URL:** <https://www.ruby-forum.com/t/nginx-http-bind-ejabbered-pending-requests-chrome/235276>\
**Category:** NGINX\
**Created:** [June 11, 2013, 3:54am UTC](https://www.ruby-forum.com/t/nginx-http-bind-ejabbered-pending-requests-chrome/235276 "2013-06-11T03:54:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [June 11, 2013, 3:54am UTC](https://www.ruby-forum.com/t/nginx-http-bind-ejabbered-pending-requests-chrome/235276/1 "2013-06-11T03:54:11Z")

</div>

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/](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;

Posted at Nginx Forum:

> **[Nginx http-bind eJabbered pending requests Chrome](https://forum.nginx.org/read.php?2,240016,240016#msg-240016)**
>
> 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...
