Simple threaded web-server based on BaseHTTPServer?
Aahz Maruch
aahz at panix.com
Thu Jan 31 16:02:50 EST 2002
In article <3C5976D0.A3A63A46 at stroeder.com>,
Michael =?iso-8859-1?Q?Str=F6der?= <michael at stroeder.com> wrote:
>
>In my case (http://web2ldap.de) I'm using threaded BaseHTTPServer
>but I'm not really happy with it. Especially since I have to use a
>module-wide lock to serialize calls into python-ldap module because
>the underlying OpenLDAP libs are not thread-safe. This can block the
>whole thing and killing threads on e.g. Linux is not possible.
>Having a single-process asyncore design would probably make things
>easier.
Add another thread to serialize things instead of using a module-wide
lock.
--
--- Aahz <*> (Copyright 2002 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"The more you drive, the less intelligent you are." --_Repo Man_
More information about the Python-list
mailing list