Klaus Demo bjoern / 2fadf35
Tell the application that bjoern is single-threaded This closes issue #96. Christoph Zwerschke 3 years ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
330330 PySys_GetObject("stderr")
331331 );
332332
333 /* dct['wsgi.multithread'] = True
334 * If I correctly interpret the WSGI specs, this means
335 * "Can the server be ran in a thread?" */
333 /* dct['wsgi.multithread'] = False
334 * (Tell the application that it is being run
335 * in a single-threaded environment.) */
336336 PyDict_SetItemString(
337337 wsgi_base_dict,
338338 "wsgi.multithread",
339 Py_True
339 Py_False
340340 );
341341
342342 /* dct['wsgi.multiprocess'] = True
343 * ... and this one "Can the server process be forked?" */
343 * (Tell the application that it is being run
344 * in a multi-process environment.) */
344345 PyDict_SetItemString(
345346 wsgi_base_dict,
346347 "wsgi.multiprocess",
347348 Py_True
348349 );
349350
350 /* dct['wsgi.run_once'] = False (bjoern is no CGI gateway) */
351 /* dct['wsgi.run_once'] = False
352 * (bjoern is no CGI gateway) */
351353 PyDict_SetItemString(
352354 wsgi_base_dict,
353355 "wsgi.run_once",