# Upstream timeout

**URL:** <https://www.ruby-forum.com/t/upstream-timeout/228722>\
**Category:** NGINX\
**Created:** [May 5, 2013, 5:43pm UTC](https://www.ruby-forum.com/t/upstream-timeout/228722 "2013-05-05T17:43:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thmarx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/87869e/32.png) [@thmarx](https://www.ruby-forum.com/u/thmarx)\
**Post date:** [May 5, 2013, 5:43pm UTC](https://www.ruby-forum.com/t/upstream-timeout/228722/1 "2013-05-05T17:43:30Z")

</div>

Hi,

I’m using nginx 1.4.0 as loadbalancer for 2 jetty servers. At my windows  
development/test system I have simple added the following to the default  
config:  
upstream backend {  
server 127.0.0.1:10000;  
server 127.0.0.1:10001;  
}  
server {  
server\_name [backend.myserver1.de](http://backend.myserver1.de);  
location / {  
proxy\_pass [http://backend](http://backend);  
}  
}

[backend.myserver1.de](http://backend.myserver1.de) is just an entry in my local host config.  
When I start everything it seems to work properly but after some  
requests,  
max 10, the nginx does not work anymore. no more requests are being  
processed. When I restart the nginx server, it works for the next few  
requests.  
When I call the backendservers directy in the browser the requests are  
processed correctly.

I haven’t tested in on a linux machine, maybe it will work there. But  
for  
testeing it would be nice, if it would work on my windows system too.

Any hints?

Kind regards  
Thorsten

Posted at Nginx Forum:

> **[Upstream timeout](https://forum.nginx.org/read.php?2,238864,238864#msg-238864)**
>
> Hi, I'm using nginx 1.4.0 as loadbalancer for 2 jetty servers. At my windows development/test system I have simple added the following to the default config: upstream backend { server 127.0.0.1:10000; server 127.0.0.1:10001; } server {

---

<div class="post-metadata">

**Author:** ![thmarx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/87869e/32.png) [@thmarx](https://www.ruby-forum.com/u/thmarx)\
**Post date:** [May 5, 2013, 5:45pm UTC](https://www.ruby-forum.com/t/upstream-timeout/228722/2 "2013-05-05T17:45:50Z")

</div>

just forgot one point,

the nginx error log is full of lines like this:  
2013/05/05 12:34:25 [error] 5388#4772: \*35 upstream timed out (10060:  
FormatMessage() error:(15105)) while connecting to upstream, client:  
127.0.0.1, server: [backend.myserver1.de](http://backend.myserver1.de), request: “GET /index.html  
HTTP/1.1”, upstream: “[http://127.0.0.1:10001/index.html](http://127.0.0.1:10001/index.html)”, host:  
“[backend.myserver1.de](http://backend.myserver1.de)”

Posted at Nginx Forum:

> **[Re: Upstream timeout](https://forum.nginx.org/read.php?2,238864,238865#msg-238865)**
>
> Hi, I'm using nginx 1.4.0 as loadbalancer for 2 jetty servers. At my windows development/test system I have simple added the following to the default config: upstream backend { server 127.0.0.1:10000; server 127.0.0.1:10001; } server {
