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

Socket circular reference in CherryPy server? #258

Open
EternityForest opened this issue Apr 16, 2019 · 0 comments
Open

Socket circular reference in CherryPy server? #258

EternityForest opened this issue Apr 16, 2019 · 0 comments

Comments

@EternityForest
Copy link
Contributor

With the CherryPy server, if you repeatedly refresh a page with websockets, then iterate the gc module's list of objects for SSLSockets, you might find an extra object for every connection.

These are collected at the next "full" sweep, but if that does not happen, eventually an OSError will occur from too many open files(On Linux).

As a workaround, I patched my copy of cheroot to do GC when accept() raises OSError.

I have heard that in the past inspecting stack frames can do odd things on very old version of python. I wonder some remnant of that bug could be related to this?

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