Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition in net/fetch.py #55

Open
bradbeattie opened this issue Dec 31, 2015 · 0 comments
Open

Race condition in net/fetch.py #55

bradbeattie opened this issue Dec 31, 2015 · 0 comments

Comments

@bradbeattie
Copy link

def run(self):
    self.report()
    dispatch_gr = gevent.spawn(callwhen, self.dispatch_event, self.dispatch)
    try:
        self.pool.join()
    finally:
        dispatch_gr.kill()

If the pool completes before the dispatch_gr is given processing time, doesn't this just end up killing dispatch_gr? If so, _refcall to fetch_imageinfo never occurs and assert not self.imageinfo_todo fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant