You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_IocpProactor._poll might need to account for _unregistered #90
I've been hitting a problem on Windows with IocpProactor not closing.
Firstly, it seems to be solved in recent commits - when using master code the problem does not seem to appear anymore, thanks! It seems additional locking has solved it (#87).
Reading the comment for cpython run_forever, it does suggest that the IocpProactor.close will wait forever, qasync also calls this method. So without popping futures from cache (even though they are marked as unregistered), the while self._cache in the IocpProactor.close will never close itself.
I this this should be added to the _poll override.
Activity
hosaka commentedon Oct 4, 2023
Hi, thanks for bringing this up.
Reading the comment for cpython
run_forever, it does suggest that theIocpProactor.closewill wait forever, qasync also calls this method. So without popping futures from cache (even though they are marked as unregistered), thewhile self._cachein theIocpProactor.closewill never close itself.I this this should be added to the
_polloverride.stat1c-void commentedon Oct 4, 2023
Alright, should I do a PR?
hosaka commentedon Oct 6, 2023
I'll submit it later on today, cheers
stat1c-void commentedon Oct 6, 2023
Awesome, thanks!