Integrating SimpleHTTPServer into asyncore

Steve Holden sholden at holdenweb.com
Mon Jul 9 07:44:48 EDT 2001


"Erik Max Francis" <max at alcyone.com> wrote ...
> Is there a standard way to integrate SimpleHTTPServer (and related
> classes) into the asyncore poll loop, or is it just the rather obvious
> process of creating a dispatcher that containers a SimpleHTTPServer and
> delegates all the relevant asyncore methods to SimpleHTTPServer?
>
> Thanks.
>
No. The HTTPServer classes simply aren't written asynchronously in that way.
You could probably use a lot of the code, but the two frameworks are
incompatible in the use they make ofthe socket, and would fight each other.

regards
 Steve

--
http://www.holdenweb.com/








More information about the Python-list mailing list