问题
I have a apache2/mod_wsgi/flask/python2.7 app. Sometimes such line appears in log file:
Partial results are valid but processing is incomplete: [client 45.132.96.124:34500] mod_wsgi (pid=13920): Unable to get bucket brigade for request., referer: https://my-site.com/some_url/
What is "bucket brigade" and what this error actually means? Is it apache error or wsgi server error? What does lead to this error? If this is some unhandled exception - how to handle it and where?
Thanks in advance.
回答1:
It usually means that the HTTP client making the request dropped the connection before the request content could all be read. If you are dealing with slow clients on mobile phone networks, it is not uncommon to see this.
As to whether you can handle it so it is ignored and nothing logged, I would need to see the complete context of the error message to see whether it is generated in conjunction with an IOError
exception in Python. If it is, the Python code could catch it and deal with and return a 500 error response but not log anything.
来源:https://stackoverflow.com/questions/50513770/apache-mod-wsgi-flask-app-unable-to-get-bucket-brigade-for-request-error