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

Use in combination with flask-sqlalchemy #32

Open
jaapz opened this issue Jun 25, 2015 · 0 comments
Open

Use in combination with flask-sqlalchemy #32

jaapz opened this issue Jun 25, 2015 · 0 comments

Comments

@jaapz
Copy link

jaapz commented Jun 25, 2015

I am trying to use this in combination with flask-sqlalchemy, but I have noticed that after each request, a connection will stay open when I use the GeventWebSocket. This connection will not be closed for some reason.

Do you know the best way to manage connections when using flask-uwsgi-websocket in combination with flask-sqlalchemy+pymysql?

I do gevent.monkey.patch_all() at the beginning of my websocket app, and I tried remove the database connection after each request using db.session.close() and db.engine.dispose(). But this did not seem to have any impact whatsoever.

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