This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bentoi
Recipients
Date 2007-02-07.18:14:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
If join() is called on a thread which is alive with a timeout, it hangs for the duration of the timeout even if the thread terminated before. This appears to only happen on Windows 2003 x64.

Here's a test case:
---
#!/usr/bin/env python                                                           
                                                                                
from threading import Thread                                                    
import time                                                                     
                                                                                
class ReaderThread(Thread):                                                     
    def __init__(self):                                                         
        Thread.__init__(self)                                                   
                                                                                
    def run(self):                                                              
                                                                                
        print "sleeping"                                                        
        time.sleep(5)                                                           
        print "finished sleeping"                                               
                                                                                
                                                                                
thread = ReaderThread()                                                         
thread.start()                                                                  
print "joining..."                                                              
thread.join(60)                                                                 
print "joined"                                                                  
 ----
History
Date User Action Args
2007-08-23 14:51:49adminlinkissue1654429 messages
2007-08-23 14:51:49admincreate