<div>2009/2/6 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</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>
&gt; every time, when I login in my site  ,they happened. I just can get a<br>
&gt; 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: &quot;GET /zsuxg/image/skin/0/main_13.gif HTTP/1.1&quot;,<br>
upstream: &quot;<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>&quot;,<br>
host: &quot;202.116.94.254&quot;, referrer: &quot;<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>&quot;<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>
&gt; ---LOGS------------------------------------------------------------------------<br>
&gt;<br>
&gt; 2009/02/06 11:19:51 [info] 32745#0: *1 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:20:01 [info] 32745#0: *3 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:21:09 [info] 32745#0: *6 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:23:03 [notice] 368#0: using the &quot;epoll&quot; event method<br>
&gt; 2009/02/06 11:23:03 [warn] 368#0: 2048 worker_connections are more than<br>
&gt; open file resource limit: 1024<br>
&gt; 2009/02/06 11:23:03 [notice] 368#0: nginx/0.6.34<br>
&gt; 2009/02/06 11:23:03 [notice] 368#0: built by gcc 4.3.2 (Ubuntu<br>
&gt; 4.3.2-1ubuntu11)<br>
&gt; 2009/02/06 11:23:03 [notice] 368#0: OS: Linux 2.6.27-7-server<br>
&gt; 2009/02/06 11:23:03 [notice] 368#0: getrlimit(RLIMIT_NOFILE): 1024:1024<br>
&gt; 2009/02/06 11:23:03 [notice] 369#0: start worker processes<br>
&gt; 2009/02/06 11:23:03 [notice] 369#0: start worker process 370<br>
&gt; 2009/02/06 11:23:11 [info] 370#0: *1 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:23:11 [info] 370#0: *4 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:24:06 [info] 370#0: *9 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:24:06 [info] 370#0: *11 writev() failed (104: Connection<br>
&gt; reset by peer) while sending to client, client: 202.116.94.64, server:<br>
&gt; 202.116.94.254, request: &quot;GET /zsuxg/image/skin/0/main_13.gif HTTP/1.1&quot;,<br>
&gt; upstream: &quot;<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>&quot;,<br>
&gt; host: &quot;202.116.94.254&quot;, referrer: &quot;<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>&quot;<br>
&gt; 2009/02/06 11:26:01 [info] 370#0: *15 client 202.116.94.64 closed<br>
&gt; keepalive connection<br>
&gt; 2009/02/06 11:26:01 [info] 370#0: *17 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; 2009/02/06 11:26:01 [info] 370#0: *19 writev() failed (104: Connection<br>
&gt; reset by peer) while sending to client, client: 202.116.94.64, server:<br>
&gt; 202.116.94.254, request: &quot;GET /zsuxg/image/skin/0/page_bg.gif HTTP/1.1&quot;,<br>
&gt; upstream: &quot;<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>&quot;,<br>
&gt; host: &quot;202.116.94.254&quot;, referrer: &quot;<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>&quot;<br>
&gt; 2009/02/06 15:00:04 [notice] 3035#0: using the &quot;epoll&quot; event method<br>
&gt; 2009/02/06 15:00:04 [warn] 3035#0: 2048 worker_connections are more than<br>
&gt; open file resource limit: 1024<br>
&gt; 2009/02/06 15:00:04 [notice] 3035#0: nginx/0.6.34<br>
&gt; 2009/02/06 15:00:04 [notice] 3035#0: built by gcc 4.3.2 (Ubuntu<br>
&gt; 4.3.2-1ubuntu11)<br>
&gt; 2009/02/06 15:00:04 [notice] 3035#0: OS: Linux 2.6.27-7-server<br>
&gt; 2009/02/06 15:00:04 [notice] 3035#0: getrlimit(RLIMIT_NOFILE): 1024:1024<br>
&gt; 2009/02/06 15:00:04 [notice] 3036#0: start worker processes<br>
&gt; 2009/02/06 15:00:04 [notice] 3036#0: start worker process 3037<br>
&gt; 2009/02/06 15:00:12 [info] 3037#0: *3 writev() failed (104: Connection<br>
&gt; reset by peer) while sending to client, client: 202.116.94.64, server:<br>
&gt; 202.116.94.254, request: &quot;GET /zsuxg/image/skin/0/page_bg.gif HTTP/1.1&quot;,<br>
&gt; upstream: &quot;<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>&quot;,<br>
&gt; host: &quot;202.116.94.254&quot;, referrer: &quot;<a href="http://202.116.94.254/zsuxg/" target="_blank">http://202.116.94.254/zsuxg/</a>&quot;<br>
&gt; 2009/02/06 15:01:00 [info] 3037#0: *8 client 202.116.94.64 closed<br>
&gt; keepalive connection (104: Connection reset by peer)<br>
&gt; ~<br>
&gt; ----------------------------------------------------------------------------<br>
&gt;<br>
&gt; my nginx.conf setting:<br>
&gt;<br>
&gt; #user  nobody;<br>
&gt; worker_processes  1;<br>
&gt;<br>
&gt; #error_log  logs/error.log;<br>
&gt; #error_log  logs/error.log  notice;<br>
&gt; #error_log  logs/error.log  info;<br>
&gt; error_log  logs/error.log  debug;<br>
&gt;<br>
&gt;<br>
&gt; #pid        logs/nginx.pid;<br>
&gt;<br>
&gt;<br>
&gt; events {<br>
&gt;     worker_connections  2048;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; http {<br>
&gt;     include       mime.types;<br>
&gt;     default_type  application/octet-stream;<br>
&gt;<br>
&gt;     log_format up_head &#39;$remote_addr - $remote_user [$time_local]<br>
&gt; $request &#39;<br>
&gt;                        &#39;upstream_http_content_type<br>
&gt; $upstream_http_content_type&#39;;<br>
&gt;<br>
&gt;<br>
&gt;     log_format  main  &#39;$remote_addr - $remote_user [$time_local]<br>
&gt; $request &#39;<br>
&gt;     #                  &#39;&quot;$status&quot; $body_bytes_sent &quot;$http_referer&quot; &#39;<br>
&gt;     #                  &#39;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#39;;<br>
&gt;<br>
&gt;     access_log  logs/access.log  debug;<br>
&gt;<br>
&gt;     sendfile        on;<br>
&gt;     #tcp_nopush     on;<br>
&gt;<br>
&gt;     #keepalive_timeout  0;<br>
&gt;<br>
&gt;     #gzip  on;<br>
&gt;<br>
&gt;<br>
&gt;     upstream mysvr {<br>
&gt;                 server <a href="http://202.116.64.11:9080" target="_blank">202.116.64.11:9080</a>;<br>
&gt;                 server <a href="http://202.116.64.11:9080" target="_blank">202.116.64.11:9080</a>;<br>
&gt;                 hash   $request_uri;<br>
&gt;         }<br>
&gt;<br>
&gt;     server {<br>
&gt;         listen       80;<br>
&gt;         server_name  202.116.94.254;<br>
&gt;<br>
&gt;         keepalive_timeout  10000;<br>
&gt;     proxy_connect_timeout 2400;<br>
&gt;     proxy_read_timeout 2400;<br>
&gt;     proxy_send_timeout 2400;<br>
&gt;     client_max_body_size 10m;<br>
&gt;     proxy_ignore_client_abort  on;<br>
&gt;<br>
&gt;<br>
&gt;         client_header_buffer_size 4000k;<br>
&gt;<br>
&gt;         #charset koi8-r;<br>
&gt;<br>
&gt;         #access_log  logs/host.access.log  main;<br>
&gt;<br>
&gt;         location / {<br>
&gt;             root   html;<br>
&gt;             index  index.html index.htm;<br>
&gt;         }<br>
&gt;<br>
&gt;         location /zsuxg/ {<br>
&gt;             proxy_pass   <a href="http://mysvr/zsuxg/" target="_blank">http://mysvr/zsuxg/</a>;<br>
&gt;             proxy_redirect default;<br>
&gt;             proxy_set_header Host $host;<br>
&gt;             proxy_set_header X-Real-IP $remote_addr;<br>
&gt;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
&gt;         }<br>
&gt;<br>
&gt;<br>
&gt;         }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt; why writev() failed (104: Connection reset by peer) while sending to<br>
&gt; 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>