-
Notifications
You must be signed in to change notification settings - Fork 15
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
RuntimeError: Set changed size during iteration #156
Comments
Hmmm. Looks like you are probably right. I dont think that I can investigate in depth until the weekend, but I will see if I can make a quick patch for that. Probably it is as simple as making a lock for waterfalls. Might as well add a performance improvement as well. No need to check the time for every single loop through the set. |
Yeah, I added a lock and it fixed it. |
If you don't mind, could you submit a PR of that? |
Hi, I was wondering if you could submit a pull request for that lock, since you have already done it. |
Yeah, I'll submit a PR. Just haven't had time recently. Should get time later today. |
When constantly reading and writing to the connection, within a few seconds I always get this:
I'm assuming it's a race condition of some sort.
Edit: This is actually an issue with
py2p
. Just realized I posted it here.The text was updated successfully, but these errors were encountered: