Select weirdness

Irmen de Jong irmen.NOSPAM at xs4all.nl
Mon Apr 23 08:40:11 CEST 2007


Ron Garret wrote:
> I don't understand why socketserver calling select should matter.  (And 
> BTW, there are no calls to select in SocketServer.py.  I'm using 
> Python2.5.)

You don't *need* a select at all.
Socketserver just blocks on accept() and dispatches a handler
on the new connection.


>> Anyway, try the following instead:
>>
> 
> That won't work for POST requests.
>

Why not?
Just add some more code to deal with the POST request body.
There should be a content-length header to tell you how many
bytes to read after the header section has finished.

--Irmen



More information about the Python-list mailing list