SocketServer - multithreading

Oleg Broytmann phd at phd.pp.ru
Thu Oct 11 12:14:11 EDT 2001


On Thu, Oct 11, 2001 at 09:04:48AM -0700, Jeremy Jones wrote:
> >Wow! The code looks VERY familiar to me! :)))
> 
> Actually, I think that you are the one I "borrowed" it from.  Good piece of
> code.  That's why I used it.

   You are welcome!

> >   Do you run the program in the background? It is possible that the
> >program stuck upon printing the request, because background programs
> >usually disallowed to write to console. Upon printing the program receives
> >SIGTSTOP signal and stops.
> >   Do not write to stdout from a background process.
> 
> I am running it in the foreground unless the SocketServer module pushes it
> to the background somewhere (which I can't see that it does by looking
> through the module).  I start it like this:
> [jjones at mahler get_request]$ ./pyserver.py 

   Strange. I have no idea. Anyway try to remove "print request". But be
advised that if you open the file in 'w' mode - you will overrite it every
time. Use 'a' mode, or open different files...

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list