Thank you very much.
I am a newbie for python :-)
Antoon Pardon wrote:
>
> It has nothing to do with threads. If you assign to a name in
> a function, that name will be treated as a local variable. So
> the go_on = False in read_send will not affect the global go_on.
>
> If you want to rebind glo
Thank you, but I think it may be not this reason.
You see, when accept returns, the go_on will be checked in 'while
go_on:', so if it is set to be false, the loop will end. I have set a
0.5 second time out on the select() function. So the 'go_on' will be
checked at a frequency every 0.5 second at
Hi,
I got a problem. I use a 'select' in a loop in the main thread, and
when select return, a new thread will be created to handle the network
event. And if the client send some special string, the thread will
change a global flag to false, so the loop in the main thread will
break. But it never