uwsgi throws IO error caused by uwsgi_response_write_body_do broken pipe

前端 未结 3 411
眼角桃花
眼角桃花 2020-12-16 09:57

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 fol

3条回答
  •  时光说笑
    2020-12-16 10:25

    Now I am not recommending this without you considering your situation. But you could turn uwsgi_ignore_client_abort to "on". With this turned on nginx will keep the aborted connection open until uwsgi returns. Why I don't recommend this completely is because this means an nginx connection will now be tied up until the request finishes. But really the uwsgi thread wasn't being aborted, so aborting the nginx connection early isn't really gaining you much in my opinion.

提交回复
热议问题