New submission from Santiago Gala <sg...@apache.org>:

In python 2.6, a server created with wsgiref.simple_server.make_server will
claim to be multithreaded and multiprocess through it wsgi environ. See  
wsgi.multithread in the browser page after launching

  $ python /usr/lib/python2.6/wsgiref/simple_server.py

The bug is due to the default value in the constructor 
wsgiref.handlers.SimpleHandler, and it is misleading, as the servier is 
singlethreaded. It gives problems for any app that wants to change behavior or 
error on singlethreaded.

The problem can be fixed very simply by patching a "multithreaded=False" 
argument into the ServerHandler constructor in simple_server.

----------
messages: 101058
nosy: sgala
severity: normal
status: open
title: wsgiref.simple_server.SimpleServer claims to be multithreaded
versions: Python 2.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8138>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to