closed keepalive connection

Maxim Dounin mdounin at
Thu Sep 8 11:34:57 UTC 2011


On Thu, Sep 08, 2011 at 07:06:10AM -0400, liushaobo wrote:

> hi all
> nginx debug log the following problems,please help me


> # tail -f /var/log/nginx_error.log
> 2011/09/08 15:38:10 [info] 19178#0: *5713577 client
> closed keepalive connection (104: Connection reset by peer)
> 2011/09/08 15:39:42 [info] 19175#0: *5729670 client
> closed keepalive connection (104: Connection reset by peer)

It's info message reporting that client closed keepalive 
connection, nothing more.  This may and will happen under normal 

> 2011/09/08 15:44:10 [info] 19257#0: *1382 client closed prematurely
> connection while sending response to client, client:,
> server:, request: "GET
> /apk/48/48598/ HTTP/1.1", host:
> ""

This is another info message, reporting that client closed 
connection before nginx was able to send full response to it.  
This is normal as well and may happen e.g. if browser is closed or 
user navigated to another page.

If you don't see such mesages - just tune your error_log logging 
level to something less verbose.  Something like "notice" or 
"error" is usually a good choice for production.

Maxim Dounin

More information about the nginx mailing list