Message385831
Hi,we are transfering code from python2.7 to 3.7 and find that using threading.timer will cause memory leak. It works fine in python2.7 but not 3.7. To repreduce the problem, you can simply run the code below.
While True:
timer = threading.Timer(5, None)
timer.start()
timer.cancel()
you will find the memory of progress increases rapidly |
|
Date |
User |
Action |
Args |
2021-01-28 02:24:03 | fengjiang | set | recipients:
+ fengjiang |
2021-01-28 02:24:03 | fengjiang | set | messageid: <1611800643.13.0.196440440542.issue43050@roundup.psfhosted.org> |
2021-01-28 02:24:03 | fengjiang | link | issue43050 messages |
2021-01-28 02:24:03 | fengjiang | create | |
|