John P Speno wrote: > On Wed, Jan 07, 2004 at 01:37:25PM -0500, Graham Fawcett wrote: > >>It turns out that his code is HTTP/1.0 only (should have realized that, >>since he based it on BaseHTTPRequestHandler which is explicitly >>HTTP/1.0). > > I know you're already close to including Medusa, but: > > As of Python 2.3, BaseHTTPServer.py supports HTTP/1.1's persistant > connections. I know because I stole it out of CVS before 2.3 was released > to use in a Python 2.2 application and renamed it PersistantHTTPServer.py. > :-) > > You just set the class variable protocol_version = 'HTTP/1.1' and it just > works. Thanks -- that's very good to know! (I'm still stuck in 2.2 most of the time, for lack of time to test my apps on 2.3, and rebuild the binary extensions I need.) > > Apologies if this won't work with the async recipe. I didn't check it. Pierre used SimpleHTTPRequestHandler, but not SimpleHTTPServer; depending on which (super)class manages the persistence, it may or may not fly. I'm still tempted to stick with Medusa. As Jim Dukarm pointed out, Sam Rushing took a lot of care in building Medusa, it's well tested and it's a known target for Quixote; in the long run it may mean less work for us all. That reminds me, I ought to send a note to Pierre to thank him and let him know we are probably not going to use his code after all... Best wishes, -- Graham