getting thread object from SocketServer.ThreadingTCPServer
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sat May 19 16:50:31 EDT 2007
En Sat, 19 May 2007 14:40:55 -0300, Brad Brock <brad_brock at yahoo.com>
escribió:
> Hi list. I have a little problem when using
> SocketServer.ThreadingTCPServer. I want to make a list
> of thread-objects generated by the
> ThreadingTCPServer. How can I get the thread object?
If getting the list of ALL threads (using threading.enumerate()) is not
enough, you would need to override the process_request method to save the
thread object in your own list.
--
Gabriel Genellina
More information about the Python-list
mailing list