Skip to content

Commit

Permalink
Merge pull request jonashaag#97 from Cito/master
Browse files Browse the repository at this point in the history
Tell the application that bjoern is single-threaded
  • Loading branch information
jonashaag authored Oct 10, 2016
2 parents b900a3f + 2fadf35 commit 740fa0a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions bjoern/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,24 +331,26 @@ void _initialize_request_module()
PySys_GetObject("stderr")
);

/* dct['wsgi.multithread'] = True
* If I correctly interpret the WSGI specs, this means
* "Can the server be ran in a thread?" */
/* dct['wsgi.multithread'] = False
* (Tell the application that it is being run
* in a single-threaded environment.) */
PyDict_SetItemString(
wsgi_base_dict,
"wsgi.multithread",
Py_True
Py_False
);

/* dct['wsgi.multiprocess'] = True
* ... and this one "Can the server process be forked?" */
* (Tell the application that it is being run
* in a multi-process environment.) */
PyDict_SetItemString(
wsgi_base_dict,
"wsgi.multiprocess",
Py_True
);

/* dct['wsgi.run_once'] = False (bjoern is no CGI gateway) */
/* dct['wsgi.run_once'] = False
* (bjoern is no CGI gateway) */
PyDict_SetItemString(
wsgi_base_dict,
"wsgi.run_once",
Expand Down

0 comments on commit 740fa0a

Please sign in to comment.