Threaded server in python!?

Elf M. Sternberg elf at drizzle.com
Tue Jan 7 11:25:03 EST 2003


Mike Meyer <mwm at mired.org> writes:

>> Using a library like Twisted <http://twistedmatrix.com/>, it's
>> straightforward to handle multiple sockets, without needing threads.

>> As a bonus, Twisted has implementations of many common protocols, ready for
>> you to use and adapt to your problem

> The above also applies to medusa, except that it's a multi-protocol
> internet server instead of a library. I actually wrote an http chat
> server on top of medusa for a client, and was pleased with how well it
> worked.

        And if you want your hand held, Webware
<http://webware.sourceforge.org> is a full-blown application server
written in Python that has session and transaction management, header
and CGI argument processing, and a very easy to understand application-
and-page deployment pattern that Fits Your Brain(tm).  You could gin up
a simple chat server over HTTP in less than an hour.  And it's
multi-threaded, using asyncore.

        If you feel the need to re-invent this particular wheel, you
clearly don't understand the road.

                Elf

        




More information about the Python-list mailing list