2007年11月13日 星期二 16:43
django 的开发 web 服务器老自动 reset,提示:
connection reset by peer.
请问是什么原因?看提示的信息没有和程序代码相关的内容。一般刷新页面后又可以访问。
[13/Nov/2007 10:05:01] "GET /site_media/v2/jquery/pixel.gif HTTP/1.1" 304 0
[13/Nov/2007 10:05:01] "GET /site_media/v2/jquery/pixel.gif HTTP/1.1" 304 0
[13/Nov/2007 10:05:07] "POST /note/ajax_noteinfos/1/ HTTP/1.1" 200 195
Traceback (most recent call last):
File "d:\python24\Lib\site-packages\django\core\servers\basehttp.py", line 273
, in run
self.finish_response()
File "d:\python24\Lib\site-packages\django\core\servers\basehttp.py", line 312
, in finish_response
self.write(data)
File "d:\python24\Lib\site-packages\django\core\servers\basehttp.py", line 391
, in write
self.send_headers()
File "d:\python24\Lib\site-packages\django\core\servers\basehttp.py", line 443
, in send_headers
self.send_preamble()
File "d:\python24\Lib\site-packages\django\core\servers\basehttp.py", line 370
, in send_preamble
self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
File "d:\python24\Lib\site-packages\django\core\servers\basehttp.py", line 487
, in _write
self.stdout.write(data)
File "D:\Python24\lib\socket.py", line 256, in write
self.flush()
File "D:\Python24\lib\socket.py", line 243, in flush
self._sock.sendall(buffer)
error: (10054, 'Connection reset by peer')
2007年11月13日 星期二 17:22
IE在没有完全打开一个页面之前就刷新就会发送rst数据包的,不过这里不做异常处理就是django的不对了。正式部署以后使用成熟的HTTP服务器就不会有这个问题。
2007年11月13日 星期二 17:43
"没有完全打开一个页面之前就刷新" 是什么情况? 我打开页面时,没有做刷新操作。 "正式部署以后使用成熟的HTTP服务器就不会有这个问题。" 现在我用的 lighttpd + fastcgi,时不时出现 unhandled exception, 刷新页面后又好了,不知道和这个有没有关联? 在 07-11-13,doudou doudou<array.doudou在gmail.com> 写道: > IE在没有完全打开一个页面之前就刷新就会发送rst数据包的,不过这里不做异常处理就是django的不对了。正式部署以后使用成熟的HTTP服务器就不会有这个问题。 > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2007年11月13日 星期二 17:55
以前在公司用Django做了个简单的管理工具。 本想偷懒用Django自带的服务器,哪知道用了没几天就挂了。 最后还是部署到Apahce里。 在 07-11-13,Neil(木野狐)<chenrong2003在gmail.com> 写道: > "没有完全打开一个页面之前就刷新" 是什么情况? > 我打开页面时,没有做刷新操作。 > > "正式部署以后使用成熟的HTTP服务器就不会有这个问题。" > 现在我用的 lighttpd + fastcgi,时不时出现 unhandled exception, 刷新页面后又好了,不知道和这个有没有关联? > > 在 07-11-13,doudou doudou<array.doudou在gmail.com> 写道: > > IE在没有完全打开一个页面之前就刷新就会发送rst数据包的,不过这里不做异常处理就是django的不对了。正式部署以后使用成熟的HTTP服务器就不会有这个问题。 > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- Blog http://vicalloy.spaces.live.com/ My googlepage http://vicalloy.googlepages.com/ OldPhoto http://www.lzpian.com/
2007年11月13日 星期二 20:38
ÊDz»ÊÇtimeoutÁË> Date: Tue, 13 Nov 2007 17:43:02 +0800> From: chenrong2003在gmail.com> To: python-chinese在lists.python.cn> Subject: Re: [python-chinese] [django] connection reset by peer> > "ûÓÐÍêÈ«´ò¿ªÒ»¸öÒ³ÃæÖ®Ç°¾ÍË¢ÐÂ" ÊÇʲôÇé¿ö£¿> ÎÒ´ò¿ªÒ³ÃæÊ±£¬Ã»ÓÐ×öˢвÙ×÷¡£> > £¢Õýʽ²¿ÊðÒÔºóʹÓóÉÊìµÄHTTP·þÎñÆ÷¾Í²»»áÓÐÕâ¸öÎÊÌâ¡££¢> ÏÖÔÚÎÒÓÃµÄ lighttpd + fastcgi£¬Ê±²»Ê±³öÏÖ unhandled exception, Ë¢ÐÂÒ³ÃæºóÓÖºÃÁË£¬²»ÖªµÀºÍÕâ¸öÓÐûÓйØÁª£¿> > ÔÚ 07-11-13£¬doudou doudou<array.doudou在gmail.com> дµÀ£º> > IEÔÚûÓÐÍêÈ«´ò¿ªÒ»¸öÒ³ÃæÖ®Ç°¾ÍˢоͻᷢËÍrstÊý¾Ý°üµÄ£¬²»¹ýÕâÀï²»×öÒì³£´¦Àí¾ÍÊÇdjangoµÄ²»¶ÔÁË¡£Õýʽ²¿ÊðÒÔºóʹÓóÉÊìµÄHTTP·þÎñÆ÷¾Í²»»áÓÐÕâ¸öÎÊÌâ¡£> > _______________________________________________> > python-chinese> > Post: send python-chinese在lists.python.cn> > Subscribe: send subscribe to python-chinese-request在lists.python.cn> > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn> > Detail Info: http://python.cn/mailman/listinfo/python-chinese> _______________________________________________> python-chinese> Post: send python-chinese在lists.python.cn> Subscribe: send subscribe to python-chinese-request在lists.python.cn> Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn> Detail Info: http://python.cn/mailman/listinfo/python-chinese _________________________________________________________________ Windows Live Custom Domain£¬ÄúµÄÃâ·Ñµç×ÓÓʾ֡£ https://domains.live.com/default.aspx -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071113/06f0cbda/attachment.html
2007年11月13日 星期二 23:50
没有 在 07-11-13,cunheise<cunheise在hotmail.com> 写道: > 是不是timeout了 > > > Date: Tue, 13 Nov 2007 17:43:02 +0800 > > From: chenrong2003在gmail.com > > To: python-chinese在lists.python.cn > > Subject: Re: [python-chinese] [django] connection reset by peer > > > > > "没有完全打开一个页面之前就刷新" 是什么情况? > > 我打开页面时,没有做刷新操作。 > > > > "正式部署以后使用成熟的HTTP服务器就不会有这个问题。" > > 现在我用的 lighttpd + fastcgi,时不时出现 unhandled exception, 刷新页面后又好了,不知道和这个有没有关联? > > > > 在 07-11-13,doudou doudou<array.doudou在gmail.com> 写道: > > > > IE在没有完全打开一个页面之前就刷新就会发送rst数据包的,不过这里不做异常处理就是django的不对了。正式部署以后使用成熟的HTTP服务器就不会有这个问题。 > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese在lists.python.cn > > > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > > > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > > > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > > ________________________________ > 使用新一代 Windows Live Messenger 轻松交流和共享! 立即体验! > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese >
Zeuux © 2025
京ICP备05028076号