Re: Catch script hangs

2009-09-27 Thread Sean DiZazzo
On Sep 27, 3:40 pm, Bakes wrote: > Due to an ftp server issue, my python script sometimes hangs whilst > downloading, unable to receive any more data. Is there any way that I > could have python check, maybe through a thread or something, whether > it has hanged (or just, if it's still active afte

Re: Catch script hangs

2009-09-27 Thread exarkun
On 10:40 pm, ba...@ymail.com wrote: Due to an ftp server issue, my python script sometimes hangs whilst downloading, unable to receive any more data. Is there any way that I could have python check, maybe through a thread or something, whether it has hanged (or just, if it's still active after 10

Catch script hangs

2009-09-27 Thread Bakes
Due to an ftp server issue, my python script sometimes hangs whilst downloading, unable to receive any more data. Is there any way that I could have python check, maybe through a thread or something, whether it has hanged (or just, if it's still active after 10 seconds, stop it?). I have looked at