2011-07-06 8 views
1

私はdjangoを開発サーバーで実行しています。以前はうまくいきましたが、昨日から、サーバが稼働していたLinuxコマンドラインでこのエラーが発生し続けています。URLを要求しているときにDjangoにエラーが発生する

Exception happened during processing of request from ('57.xx.xx.123', 63721) 
Traceback (most recent call last): 
    File "/opt/python27/lib/python2.7/SocketServer.py", line 284, in _handle_reque                    st_noblock 
    self.process_request(request, client_address) 
    File "/opt/python27/lib/python2.7/SocketServer.py", line 310, in process_reque                    st 
    self.finish_request(request, client_address) 
    File "/opt/python27/lib/python2.7/SocketServer.py", line 323, in finish_reques                    t 
    self.RequestHandlerClass(request, client_address, self) 
    File "/opt/python27/lib/python2.7/site-packages/django/core/servers/basehttp.p                    y", line 570, in __init__ 
    BaseHTTPRequestHandler.__init__(self, *args, **kwargs) 
    File "/opt/python27/lib/python2.7/SocketServer.py", line 641, in __init__ 
    self.finish() 
    File "/opt/python27/lib/python2.7/SocketServer.py", line 694, in finish 
    self.wfile.flush() 
    File "/opt/python27/lib/python2.7/socket.py", line 301, in flush 
    self._sock.sendall(view[write_offset:write_offset+buffer_size]) 
error: [Errno 32] Broken pipe 

誰もが、それはこれが唯一の1の10倍

答えて

1

"壊れたパイプ"は、宛先が終了したときにファイル記述子(この場合はソケット)に送信データが残っていたことを意味します。

この場合、Django開発サーバーが応答全体を送信する前に、ブラウザが接続を閉じる可能性が最も高い原因です。

0

の外に起こる今

が起き始めた理由時折、私は例外の後に壊れたパイプを参照するか、私に接続するときだろうと私を導くことができますクロスブラウザ/プラットフォームテストを行う場合、Linux box form Windows。私はこれらのエラーの原因を正確には分かっていませんが、Djangoの開発サーバーを再起動することは、それを修正するために私が知っていることすべてです。

関連する問題