Django + WebKit = Broken pipe

后端 未结 6 1796
予麋鹿
予麋鹿 2020-12-05 13:48

I\'m running the Django 1.2 development server and I get these Broken Pipe error messages whenever I load a page from it with Chrome or Safari. My co-worker is getting the e

6条回答
  •  醉酒成梦
    2020-12-05 14:10

    This can be due an error in the javascript function dispatching the ajax call.

    For example, the function may be triggered by a click event on a link, and if the default action of link is not prevented, you will get a secondary request right away and the browser will close the previous connection without waiting for the response to finish. I had the same problem when I forgot to add return false to the event handler.

    The same symptom can occur if the event handler triggering ajax throws an exception.

    Debug carefully the function making the ajax request and the return value of that function.

提交回复
热议问题