MultiThread Socket on NT

Cliff Wells logiplexsoftware at earthlink.net
Fri Nov 16 12:49:54 EST 2001


On Thursday 15 November 2001 23:22, GT wrote:
> 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

Be sure you are using at least SP5.  NT 4 had serious threading issues prior 
to that.

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list