mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
fixed current_wsgi_req in multithreading without cores
This commit is contained in:
@@ -1701,7 +1701,8 @@ int uwsgi_start(void *v_argv) {
|
||||
#ifdef UWSGI_THREADING
|
||||
if (uwsgi.sockets_cnt) {
|
||||
if (uwsgi.has_threads) {
|
||||
uwsgi.current_wsgi_req = threaded_current_wsgi_req;
|
||||
if (uwsgi.threads > 1)
|
||||
uwsgi.current_wsgi_req = threaded_current_wsgi_req;
|
||||
for (i = 0; i < 0xFF; i++) {
|
||||
if (uwsgi.p[i]->enable_threads)
|
||||
uwsgi.p[i]->enable_threads();
|
||||
|
||||
Reference in New Issue
Block a user