added --write-errors-tolerance and --write-errors-exception-only

This commit is contained in:
roberto@precise64
2012-04-14 09:11:52 +02:00
parent d934270a27
commit b7e6da3392
9 changed files with 57 additions and 5 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ static int sapi_uwsgi_ub_write(const char *str, uint str_length TSRMLS_DC)
struct wsgi_request *wsgi_req = (struct wsgi_request *) SG(server_context);
wsgi_req->response_size += wsgi_req->socket->proto_write(wsgi_req, (char *) str, str_length);
if (wsgi_req->write_errors > 0) {
if (wsgi_req->write_errors > uwsgi.write_errors_tolerance) {
php_handle_aborted_connection();
return -1;
}