uwsgi throws IO error caused by uwsgi_response_write_body_do broken pipe
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My application is a uwsgi+django setup. I use gevent to do performance testing and run 1200 requests concurrently. At this point, uwsgi will throw an IO error with the following log message: uwsgi_response_write_body_do(): Broken pipe [core/writer.c line 260] IOError: write error Django 1.4.0 uwsgi: 1.9.13 python: 2.6 TCP Listen queue: 1000 What is the cause of this broken pipe error? 回答1: This can happen when NGINX started a request to uWSGI but uWSGI took too long to respond, then NGINX closes the connection to uWSGI. When uWSGI finally