web_server: the web server is not multi-process, indicate so in WSGI.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 22 Nov 2012 00:46:59 +0000 (00:46 +0000)
committerMatthieu Patou <mat@matws.net>
Thu, 22 Nov 2012 22:57:51 +0000 (14:57 -0800)
This is a requirement for some of the paster middleware used by SWAT2.

Reviewed-by: Matthieu Patou <mat@matws.net>
source4/web_server/wsgi.c

index 17b9074700b0af56e40ce3ee170513a00f842985..00c9535cac4388f85eb740e170d9d50fe93fd968 100644 (file)
@@ -285,7 +285,7 @@ static PyObject *create_environ(bool tls, int content_length, struct http_header
        PyDict_SetItemString(env, "wsgi.version", py_val);
        Py_DECREF(py_val);
        PyDict_SetItemString(env, "wsgi.multithread", Py_False);
-       PyDict_SetItemString(env, "wsgi.multiprocess", Py_True);
+       PyDict_SetItemString(env, "wsgi.multiprocess", Py_False);
        PyDict_SetItemString(env, "wsgi.run_once", Py_False);
        py_val = PyString_FromString("HTTP/1.0");
        if (py_val == NULL) goto error;