Welcome! Log In Create A New Profile

Advanced

Re: Upstream timeout issue

January 10, 2011 04:04AM
I forgot to attach the nginx.conf gile

[code]
gzip on;
gzip_disable "msie6";

# gzip_vary on;
# gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;


##
# Balancer
##
upstream backend {
server XXX.XXX.XXX.XXX;

}

server {
listen 80;
location / {

client_max_body_size 50M;
client_body_buffer_size 256k;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://backend;
}
}
[/code]



egreco Wrote:
-------------------------------------------------------
> I setup an upstream configuration with only one
> server for now, i will add a new one in a while.
>
> im experiencing a strange error now and then when
> users are uploading files to a form they get
> sometimes in the browser ERROR 502 bad gateway
> and on nginx error logs i get
>
>
> 2011/01/10 08:07:31 28135#0: *606977 upstream
> timed out (110: Connection timed out) while
> reading response header from upstream, client:
> XXX.XXX.XXX.XXX, server: , request: "POST
> /UserDetails.aspx?CultureId=1 HTTP/1.1", upstream:
> "http://backend1:80//UserDetails.aspx?CultureId=1"
> , host: "host.host.com", referrer:
> "http://host.host.com/UserDetails.aspx?CultureId=1
> "
>
> 2011/01/10 08:07:31 28135#0: *606977 no live
> upstreams while connecting to upstream, client:
> XXX.XXX.XXX.XXX, server: , request: "POST
> /UserDetails.aspx?CultureId=1 HTTP/1.1", upstream:
> "http://backend/UserDetails.aspx?CultureId=1",
> host: "host.host.com", referrer:
> "http://host.host.com/UserDetails.aspx?CultureId=1
> "
>
>
> now i dont know what is the exact issue, or the
> upload timeout or maybe DNS issues..could it be
> IPv6 dns resolving the problem?
>
> When the users upload directly to the server they
> dont get any timeout or errors.
>
> Thanks in advance
Subject Author Posted

Upstream timeout issue

elgreco January 10, 2011 04:01AM

Re: Upstream timeout issue

elgreco January 10, 2011 04:04AM

Re: Upstream timeout issue

elgreco January 10, 2011 08:38AM

Re: Upstream timeout issue

elgreco January 11, 2011 03:23AM

Re: Upstream timeout issue

Paxxil March 16, 2011 06:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready