FastCGI errors in nginx 0.6.x

Hi guys, Im running nginx 0.6.35 with PHP 5.2.6 with php-fpm patch.
Everything just runs super nice, but I found in almost all vhost
error_log files this errors:

2009/03/25 07:22:40 [info] 4552#0: *64462 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:25:48 [info] 4552#0: *64486 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 07:30:22 [info] 4552#0: *64510 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:32:51 [info] 4552#0: *64524 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:35:58 [info] 4552#0: *64559 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 07:40:30 [info] 4552#0: *64688 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:43:01 [info] 4552#0: *64720 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:46:09 [info] 4552#0: *64760 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 07:50:39 [info] 4552#0: *64860 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:53:11 [info] 4552#0: *64900 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 07:56:20 [info] 4552#0: *65053 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 08:00:47 [info] 4554#0: *65503 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:03:21 [info] 4554#0: *65567 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:06:31 [info] 4554#0: *65588 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 08:10:55 [info] 4554#0: *65622 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:13:34 [info] 4554#0: *65638 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:16:42 [info] 4554#0: *65660 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 08:21:04 [info] 4554#0: *65682 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:23:44 [info] 4554#0: *65738 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:26:53 [info] 4554#0: *65760 client closed prematurely
connection, so upstream connection is closed too while reading upstream,
client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org
2009/03/25 08:31:12 [info] 4554#0: *65796 client closed prematurely
connection while sending to client, client: 208.83.212.8, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org
2009/03/25 08:33:55 [info] 4554#0: *65833 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org

I know its something related to php-fpm with nginx, but Im not sure what
or how to fix it.

On Wed, Mar 25, 2009 at 08:39:25AM +0100, Robert G. wrote:

client: 84.242.66.126, server: www.example.org, request: “GET /
HTTP/1.1”, upstream: “fastcgi://127.0.0.1:50000”, host:
www.example.org

2009/03/25 08:33:55 [info] 4554#0: *65833 client closed prematurely
connection while sending to client, client: 67.223.232.34, server:
www.example.org, request: “GET / HTTP/1.1”, upstream:
“fastcgi://127.0.0.1:50000”, host: “www.example.org

I know its something related to php-fpm with nginx, but Im not sure what
or how to fix it.

No, these messages are not related to php-fpm. In these cases client
have closed connection, but not fastcgi server.

So this means that from my server side is everything fine, nginx and
php-fpm are fine.

when send a big file to the dav server directly, the connection will
not close
but why proxy_pass once, it will close very soon.

client–>ngx http dav ,ok
client–>ngx—>proxy_pass, close

both the request are send a big file to the server.

thanks

2009/3/26 Igor S. [email protected]:

On Wed, Mar 25, 2009 at 07:26:23PM +0100, Robert G. wrote:

So this means that from my server side is everything fine, nginx and
php-fpm are fine.

In general - yes. However, clients may close connections if responses
take too long.