Message234535
Running "runtests.py test_cancel_post_init test_shell" and "runtests.py test_wait_for_handle test_wait_for_handle_cancel" of Tulip show a different behaviour of _WaitHandleFuture. In one case, the cancelled wait is still signaled, on other case, it's never signaled.
Currently, a cancelled _WaitHandleFuture always unregisters the overlapped operation, which causes unexpected event or may lead tests to hang. Never unregisters causes a different issue. Unregistering the overlapped indirectly delete it in memory, which is bad if the completion is still signaled.
A workaround is to keep a reference to the unregistered overlopped, but it's an ugly workaround. |
|
Date |
User |
Action |
Args |
2015-01-23 01:36:28 | vstinner | set | recipients:
+ vstinner, gvanrossum, tim.golden, python-dev, sbt, zach.ware, yselivanov, steve.dower |
2015-01-23 01:36:28 | vstinner | set | messageid: <1421976988.77.0.597056601217.issue23095@psf.upfronthosting.co.za> |
2015-01-23 01:36:28 | vstinner | link | issue23095 messages |
2015-01-23 01:36:27 | vstinner | create | |
|