Re: 100% CPU Usage when a tcp client is disconnected

2007-11-22 Thread Scott David Daniels
Aaron Watters wrote: > On Nov 22, 9:53 am, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote: >> The following is a code I am using for a simple tcp echo server. >> When I run it and then connect to it (with Telnet for example) if I >> shout down the telnet the CPU tops 100% of usage and saty there >> for

Re: 100% CPU Usage when a tcp client is disconnected

2007-11-22 Thread Tzury Bar Yochay
Thank Hrvoje as well -- http://mail.python.org/mailman/listinfo/python-list

Re: 100% CPU Usage when a tcp client is disconnected

2007-11-22 Thread Hrvoje Niksic
Tzury Bar Yochay <[EMAIL PROTECTED]> writes: > The following is a code I am using for a simple tcp echo server. > When I run it and then connect to it (with Telnet for example) if I > shout down the telnet the CPU tops 100% of usage and saty there > forever. Can one tell what am I doing wrong? I

Re: 100% CPU Usage when a tcp client is disconnected

2007-11-22 Thread Tzury Bar Yochay
> data = "dummy" > while data: > ... Thanks Alot -- http://mail.python.org/mailman/listinfo/python-list

Re: 100% CPU Usage when a tcp client is disconnected

2007-11-22 Thread Aaron Watters
On Nov 22, 9:53 am, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote: > The following is a code I am using for a simple tcp echo server. > When I run it and then connect to it (with Telnet for example) if I > shout down the telnet the CPU tops 100% of usage and saty there > forever > def handle(s