mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 20:51:29 +00:00
another WSGI optimization
This commit is contained in:
@@ -339,6 +339,8 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre
|
||||
}
|
||||
|
||||
// cache most used values
|
||||
wi->error = PyFile_FromFile(stderr, "wsgi_errors", "w", NULL);
|
||||
Py_INCREF(wi->error);
|
||||
|
||||
wi->gateway_version = PyTuple_New(2);
|
||||
PyTuple_SetItem(wi->gateway_version, 0, PyInt_FromLong(1));
|
||||
|
||||
Reference in New Issue
Block a user