# Connection error

**URL:** <https://www.ruby-forum.com/t/connection-error/176365>\
**Category:** NGINX\
**Created:** [September 29, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/connection-error/176365 "2009-09-29T17:53:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Post date:** [September 29, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/connection-error/176365/1 "2009-09-29T17:53:51Z")

</div>

Hi

I am getting following error in nginx+PHP FastCGI. I searched this error  
on google but not getting any useful link.  
Please guide what could be the cause of this error.

2009/09/29 10:01:34 2156#0: \*120 recv() failed (104: Connection reset  
by peer) while reading response header from upstream, client:  
10.0.1.101, server: localhost, request: “GET /helloworld.php HTTP/1.1”,  
upstream: “fastcgi://127.0.0.1:9000”, host: “10.0.1.71”

Thanks a lot !

Posted at Nginx Forum:

> **[Connection error](https://forum.nginx.org/read.php?2,9927,9927#msg-9927)**
>
> Hi I am getting following error in nginx+PHP FastCGI. I searched this error on google but not getting any useful link. Please guide what could be the cause of this error. 2009/09/29 10:01:34 \[error\] 2156#0: \*120 recv() failed (104: Connection reset...

---

<div class="post-metadata">

**Author:** ![chaitanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Post date:** [September 29, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/connection-error/176365/2 "2009-09-29T17:55:01Z")

</div>

Hello!

On Tue, Sep 29, 2009 at 10:21:57AM -0400, chaitanya wrote:

> Hi
> 
> I am getting following error in nginx+PHP FastCGI. I searched this error on google but not getting any useful link.  
> Please guide what could be the cause of this error.
> 
> 2009/09/29 10:01:34 2156#0: \*120 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.0.1.101, server: localhost, request: “GET /helloworld.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “10.0.1.71”

Most likely your fastcgi application (php) has been died.

Maxim D.

---

<div class="post-metadata">

**Author:** ![chaitanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Post date:** [September 29, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/connection-error/176365/3 "2009-09-29T18:06:08Z")

</div>

i have to call one php page at rate of around 500-1000 Request per  
second & that is from single IP. But i am getting strange output My page  
works well 5 times, then it gives error for next 5 requests & this  
trend continues.

I am not getting what could be the cause of this strange error?

Posted at Nginx Forum:

> **[Re: Connection error](https://forum.nginx.org/read.php?2,9927,9946#msg-9946)**
>
> Hi I am getting following error in nginx+PHP FastCGI. I searched this error on google but not getting any useful link. Please guide what could be the cause of this error. 2009/09/29 10:01:34 \[error\] 2156#0: \*120 recv() failed (104: Connection reset...

---

<div class="post-metadata">

**Author:** ![chaitanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Post date:** [September 29, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/connection-error/176365/4 "2009-09-29T18:19:02Z")

</div>

Hello!

On Tue, Sep 29, 2009 at 10:59:23AM -0400, chaitanya wrote:

> i have to call one php page at rate of around 500-1000 Request per second & that is from single IP. But i am getting strange output My page works well 5 times, then it gives error for next 5 requests & this trend continues.
> 
> I am not getting what could be the cause of this strange error?

Looks like you have 5 php workers, and each of them is able to  
process one request, but dies on the second. Probably some  
php accelerator related issue.

Maxim D.

---

<div class="post-metadata">

**Author:** ![chaitanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Post date:** [September 29, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/connection-error/176365/5 "2009-09-29T18:30:44Z")

</div>

Thanks a lot for your reply !  
But even when i increase worker process to 15, then too i am getting  
same trend.  
And i am not using any php acclerator for this.

Posted at Nginx Forum:

> **[Re: Connection error](https://forum.nginx.org/read.php?2,9927,9951#msg-9951)**
>
> Hi I am getting following error in nginx+PHP FastCGI. I searched this error on google but not getting any useful link. Please guide what could be the cause of this error. 2009/09/29 10:01:34 \[error\] 2156#0: \*120 recv() failed (104: Connection reset...
