Message254844
Hi,
In multiprocessing.dummy module I noticed when you send a zero-length iterator to pool.map it hang forever,
Code example:
import urllib2
from multiprocessing.dummy import Pool as ThreadPool
def start_multithreading_urlopen(threads_num):
pool = ThreadPool(threads_num)
results = pool.map(urllib2.urlopen, [])
pool.close()
pool.join()
# hang here
print results
I think it related to Issue6433 that was fixed on multiprocessing module with simple length check |
|
Date |
User |
Action |
Args |
2015-11-18 14:04:58 | tomer70 | set | recipients:
+ tomer70 |
2015-11-18 14:04:58 | tomer70 | set | messageid: <1447855498.22.0.263851728204.issue25656@psf.upfronthosting.co.za> |
2015-11-18 14:04:58 | tomer70 | link | issue25656 messages |
2015-11-18 14:04:58 | tomer70 | create | |
|