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

server close() race condition #85

Open
belm0 opened this issue Sep 5, 2018 · 1 comment · May be fixed by #110
Open

server close() race condition #85

belm0 opened this issue Sep 5, 2018 · 1 comment · May be fixed by #110

Comments

@belm0
Copy link
Contributor

belm0 commented Sep 5, 2018

observed in the wild:

    File "foo.py", line 16, in bar
      server.close()
    File "/.../python3.6/site-packages/SimpleWebSocketServer/SimpleWebSocketServer.py", line 595, in close
      for desc, conn in self.connections.items():
  RuntimeError: dictionary changed size during iteration
@dpallot
Copy link
Owner

dpallot commented Feb 7, 2019

Are you calling close from another thread context?

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

Successfully merging a pull request may close this issue.

2 participants