Why is mod_wsgi not able to write data? IOError: failed to write data

后端 未结 4 734
耶瑟儿~
耶瑟儿~ 2021-01-31 08:07

What could be causing this error:

$ sudo tail -n 100 /var/log/apache2/error.log\'

[Wed Dec 29 15:20:03 2010] [error] [client 220.181.108.181] mod_wsg         


        
4条回答
  •  心在旅途
    2021-01-31 08:40

    I have the same problem in an application that uses a lot of AJAX calls (mod_wsgi 3.3). Is there any known solution for this? I thought about just ignoring the exception, but that is normally not a very good idea.

    UPDATE

    Actually, this can be due to several things, but the most probable cause is that you are using the write callback instead of yielding your output.

    I believe this will help:

    http://groups.google.com/group/modwsgi/browse_thread/thread/c9cc1307bc10cfff

提交回复
热议问题