Message331441
I am playing with passing weakreferences into the iterator objects, but this may not be enough. For example, take the code of ApplyResult.get:
def get(self, timeout=None):
if self._pool() is None:
raise RuntimeError("The pool is dead!") <--- new code
self.wait(timeout)
It can be that the pool is alive when we check for it (self._pool() is None) but while the code is waiting with no timeout, the pool dies, effectively leaving the program deadlocked with no error. |
|
Date |
User |
Action |
Args |
2018-12-09 17:40:49 | pablogsal | unlink | issue35378 messages |
2018-12-09 17:40:27 | pablogsal | set | recipients:
+ pablogsal, pitrou, vstinner, ericvw, tzickel |
2018-12-09 17:40:27 | pablogsal | set | messageid: <1544377227.03.0.788709270274.issue35378@psf.upfronthosting.co.za> |
2018-12-09 17:40:27 | pablogsal | link | issue35378 messages |
2018-12-09 17:40:26 | pablogsal | create | |
|