closed keepalive connection

liushaobo nginx-forum at nginx.us
Thu Sep 8 11:06:10 UTC 2011


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

# nginx config
user  www www;
worker_processes 8;
worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000
00100000 01000000 10000000;
worker_rlimit_nofile 65535;

#error_log /var/log/nginx_error.log  crit;
error_log  /var/log/nginx_error.log  debug;

pid        /var/run/nginx.pid;

events {
    worker_connections  65535;
    use epoll;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    tcp_nopush      on;
    tcp_nodelay     on;
    server_tokens   off;
    charset utf8;

    server_names_hash_bucket_size 128;
    client_header_buffer_size 32k;
    large_client_header_buffers 4 32k;
    client_max_body_size 150m;

    gzip            on;
    gzip_comp_level 2;
    gzip_min_length 1024;
    gzip_buffers    4 16k;
    gzip_http_version 1.0;
    gzip_types      text/plain application/x-javascript text/css
application/xml;
    gzip_vary       on;

    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 64k;
    fastcgi_buffers 4 64k;
    fastcgi_busy_buffers_size 128k;
    fastcgi_temp_file_write_size 128k;
    proxy_intercept_errors on;
    proxy_ignore_client_abort on;
    fastcgi_intercept_errors on;

    keepalive_timeout  120;
    limit_zone   one  $binary_remote_addr  10m;

    include /etc/nginx/conf.d/*.conf;

error_log  /var/log/nginx_error.log  debug;

# tail -f /var/log/nginx_error.log

2011/09/08 15:38:10 [info] 19178#0: *5713577 client 112.64.188.183
closed keepalive connection (104: Connection reset by peer)
2011/09/08 15:39:42 [info] 19175#0: *5729670 client 112.64.188.183
closed keepalive connection (104: Connection reset by peer)
2011/09/08 15:44:10 [info] 19257#0: *1382 client closed prematurely
connection while sending response to client, client: 112.64.188.183,
server: static.test.com, request: "GET
/apk/48/48598/com.dolphin.browser.cn.apk HTTP/1.1", host:
"static.test.com"
2011/09/08 15:45:06 [info] 19261#0: *2100 client 112.64.188.183 closed
keepalive connection (104: Connection reset by peer)

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214974,214974#msg-214974



More information about the nginx mailing list