MultiThread Socket on NT

GT guy.theisen at isp.lu
Fri Nov 16 02:22:32 EST 2001


Hi,
 
  I have a Simple Thread Socket Server. But if I lunch the Socket Server, and 
  many clients connect to this server, I must wait a long time for an answer. 
  I use in this case a simple Thread.

  while 1:
        conn, addr = s.accept()
        if fail:
            thread = threading.Thread(target=burp, args=(conn,addr))
            thread.start()
        else:
            burp(conn,addr)

 But how can I set up a multithread Socket ? 


Thanks for any help,

GT



More information about the Python-list mailing list