<div>2009/2/6 Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
On Fri, Feb 06, 2009 at 08:22:01AM +0100, Zsu Frog wrote:<br>
<br>
> every time, when I login in my site ,they happened. I just can get a<br>
> error blank page.<br>
<br>
</div>These lines:<br>
<div class="im"><br>
2009/02/06 11:19:51 [info] 32745#0: *1 client 202.116.94.64 closed<br>
keepalive connection (104: Connection reset by peer)<br>
<br>
</div>are usually normal: MSIE closes keepalie connection using RST packet.<br>
However, these ones:<br>
<div class="im"><br>
2009/02/06 11:24:06 [info] 370#0: *11 writev() failed (104: Connection<br>
reset by peer) while sending to client, client: 202.116.94.64, server:<br>
202.116.94.254, request: "GET /zsuxg/image/skin/0/main_13.gif HTTP/1.1",<br>
upstream: "<a href="http://202.116.64.11:9080/zsuxg/image/skin/0/main_13.gif" target="_blank">http://202.116.64.11:9080/zsuxg/image/skin/0/main_13.gif</a>",<br>
host: "202.116.94.254", referrer: "<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>"<br>
<br>
</div>are strange.</blockquote><div>I also got this error on my nginx error log. </div><div></div><div>Is there any way to fix this?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<div><div class="h5"><br>
> ---LOGS------------------------------------------------------------------------<br>
><br>
> 2009/02/06 11:19:51 [info] 32745#0: *1 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:20:01 [info] 32745#0: *3 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:21:09 [info] 32745#0: *6 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:23:03 [notice] 368#0: using the "epoll" event method<br>
> 2009/02/06 11:23:03 [warn] 368#0: 2048 worker_connections are more than<br>
> open file resource limit: 1024<br>
> 2009/02/06 11:23:03 [notice] 368#0: nginx/0.6.34<br>
> 2009/02/06 11:23:03 [notice] 368#0: built by gcc 4.3.2 (Ubuntu<br>
> 4.3.2-1ubuntu11)<br>
> 2009/02/06 11:23:03 [notice] 368#0: OS: Linux 2.6.27-7-server<br>
> 2009/02/06 11:23:03 [notice] 368#0: getrlimit(RLIMIT_NOFILE): 1024:1024<br>
> 2009/02/06 11:23:03 [notice] 369#0: start worker processes<br>
> 2009/02/06 11:23:03 [notice] 369#0: start worker process 370<br>
> 2009/02/06 11:23:11 [info] 370#0: *1 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:23:11 [info] 370#0: *4 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:24:06 [info] 370#0: *9 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:24:06 [info] 370#0: *11 writev() failed (104: Connection<br>
> reset by peer) while sending to client, client: 202.116.94.64, server:<br>
> 202.116.94.254, request: "GET /zsuxg/image/skin/0/main_13.gif HTTP/1.1",<br>
> upstream: "<a href="http://202.116.64.11:9080/zsuxg/image/skin/0/main_13.gif" target="_blank">http://202.116.64.11:9080/zsuxg/image/skin/0/main_13.gif</a>",<br>
> host: "202.116.94.254", referrer: "<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>"<br>
> 2009/02/06 11:26:01 [info] 370#0: *15 client 202.116.94.64 closed<br>
> keepalive connection<br>
> 2009/02/06 11:26:01 [info] 370#0: *17 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> 2009/02/06 11:26:01 [info] 370#0: *19 writev() failed (104: Connection<br>
> reset by peer) while sending to client, client: 202.116.94.64, server:<br>
> 202.116.94.254, request: "GET /zsuxg/image/skin/0/page_bg.gif HTTP/1.1",<br>
> upstream: "<a href="http://202.116.64.11:9080/zsuxg/image/skin/0/page_bg.gif" target="_blank">http://202.116.64.11:9080/zsuxg/image/skin/0/page_bg.gif</a>",<br>
> host: "202.116.94.254", referrer: "<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>"<br>
> 2009/02/06 15:00:04 [notice] 3035#0: using the "epoll" event method<br>
> 2009/02/06 15:00:04 [warn] 3035#0: 2048 worker_connections are more than<br>
> open file resource limit: 1024<br>
> 2009/02/06 15:00:04 [notice] 3035#0: nginx/0.6.34<br>
> 2009/02/06 15:00:04 [notice] 3035#0: built by gcc 4.3.2 (Ubuntu<br>
> 4.3.2-1ubuntu11)<br>
> 2009/02/06 15:00:04 [notice] 3035#0: OS: Linux 2.6.27-7-server<br>
> 2009/02/06 15:00:04 [notice] 3035#0: getrlimit(RLIMIT_NOFILE): 1024:1024<br>
> 2009/02/06 15:00:04 [notice] 3036#0: start worker processes<br>
> 2009/02/06 15:00:04 [notice] 3036#0: start worker process 3037<br>
> 2009/02/06 15:00:12 [info] 3037#0: *3 writev() failed (104: Connection<br>
> reset by peer) while sending to client, client: 202.116.94.64, server:<br>
> 202.116.94.254, request: "GET /zsuxg/image/skin/0/page_bg.gif HTTP/1.1",<br>
> upstream: "<a href="http://202.116.64.11:9080/zsuxg/image/skin/0/page_bg.gif" target="_blank">http://202.116.64.11:9080/zsuxg/image/skin/0/page_bg.gif</a>",<br>
> host: "202.116.94.254", referrer: "<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>"<br>
> 2009/02/06 15:01:00 [info] 3037#0: *8 client 202.116.94.64 closed<br>
> keepalive connection (104: Connection reset by peer)<br>
> ~<br>
> ----------------------------------------------------------------------------<br>
><br>
> my nginx.conf setting:<br>
><br>
> #user nobody;<br>
> worker_processes 1;<br>
><br>
> #error_log logs/error.log;<br>
> #error_log logs/error.log notice;<br>
> #error_log logs/error.log info;<br>
> error_log logs/error.log debug;<br>
><br>
><br>
> #pid logs/nginx.pid;<br>
><br>
><br>
> events {<br>
> worker_connections 2048;<br>
> }<br>
><br>
><br>
> http {<br>
> include mime.types;<br>
> default_type application/octet-stream;<br>
><br>
> log_format up_head '$remote_addr - $remote_user [$time_local]<br>
> $request '<br>
> 'upstream_http_content_type<br>
> $upstream_http_content_type';<br>
><br>
><br>
> log_format main '$remote_addr - $remote_user [$time_local]<br>
> $request '<br>
> # '"$status" $body_bytes_sent "$http_referer" '<br>
> # '"$http_user_agent" "$http_x_forwarded_for"';<br>
><br>
> access_log logs/access.log debug;<br>
><br>
> sendfile on;<br>
> #tcp_nopush on;<br>
><br>
> #keepalive_timeout 0;<br>
><br>
> #gzip on;<br>
><br>
><br>
> upstream mysvr {<br>
> server <a href="http://202.116.64.11:9080" target="_blank">202.116.64.11:9080</a>;<br>
> server <a href="http://202.116.64.11:9080" target="_blank">202.116.64.11:9080</a>;<br>
> hash $request_uri;<br>
> }<br>
><br>
> server {<br>
> listen 80;<br>
> server_name 202.116.94.254;<br>
><br>
> keepalive_timeout 10000;<br>
> proxy_connect_timeout 2400;<br>
> proxy_read_timeout 2400;<br>
> proxy_send_timeout 2400;<br>
> client_max_body_size 10m;<br>
> proxy_ignore_client_abort on;<br>
><br>
><br>
> client_header_buffer_size 4000k;<br>
><br>
> #charset koi8-r;<br>
><br>
> #access_log logs/host.access.log main;<br>
><br>
> location / {<br>
> root html;<br>
> index index.html index.htm;<br>
> }<br>
><br>
> location /zsuxg/ {<br>
> proxy_pass <a href="http://mysvr/zsuxg/" target="_blank">http://mysvr/zsuxg/</a>;<br>
> proxy_redirect default;<br>
> proxy_set_header Host $host;<br>
> proxy_set_header X-Real-IP $remote_addr;<br>
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
> }<br>
><br>
><br>
> }<br>
><br>
><br>
><br>
><br>
> }<br>
><br>
> why writev() failed (104: Connection reset by peer) while sending to<br>
> client ??<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br><div><br></div>