embeddable Python web server (was 'derived from CGIHTTPServer.py')
python-list at teleo.net
Fri Feb 18 14:36:38 EST 2000
[Moshe Zadka, on Fri, 18 Feb 2000]
:: On Fri, 18 Feb 2000, Michael [iso-8859-1] Ströder wrote:
:: > I guess I have to rewrite my synchronous code completely
:: > if I want to write a medusa handler. Am i right?
:: Yep. Medusa is only syntactic sugar for a raw select(), which tends to
:: make your code inside-out (so to speak). If you want to do it simply,
:: consider mixing in ThreadingTCPServer and do it in threads.
:: (That of course assumes you are on a platform which uses threads. I
:: believe Python can use threads on Win32 and on most Unices, but I may be
That's right -- since the introduction of the PyThreadState structure in
1.5. Be mindful also that the global lock will be in effect.
More information about the Python-list