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
Hangs with Python 3.7 #138
Comments
Here's what I work around. cjltsod@2e56a5b |
Hi, thanks for the valuable information. |
Yes, setting |
Well maybe it's much easier just setting |
Thanks a lot for helping. It solved the issues. cjltsod@13c0f2e |
So are we getting a release with this fix or not? sshtunnel currently doesn't work properly in Python 3.7+ |
Still hangs in 3.7+. |
updated PYPI |
Any plan to also update the conda-forge package? |
Hi, I am still getting this issue with python 3.7 using v0.1.5. |
Hi, I am still getting this issue with python 3.8 using v0.1.5. EDIT: specifically it happens to me only if I execute any kind of query through the ssh tunnel (I'm using django 2.2.9) |
Hi! I'm getting the same here, after executing queries with pandas, on a flask application using sqlAlchemy. |
I've solved the hanging problem with #72 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I reopened this issue as I found a lot of new comments!
Do anyone have an issue related to hangs with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@tdstarkisoc thanks you for feedback and tests. I'll close the issue. And if anyone have an issue related to hangs with And also we have a plan to change the default threading daemon option for sshtunnel threads. UPD (2021): we released 0.4.0 and changed the default threading daemon option for sshtunnel threads with functional tests. |
I'm using SSHTunnelForwarder with Python 3.7. After finishing my work, I run
server.stop()
and hangs.I believe it caused by
socketserver.ThreadingMixIn
https://docs.python.org/3.7/library/socketserver.html#socketserver.ThreadingMixIn
Here's my work around. I changed the attribute
server._server_list[0].block_on_close = False
, and it behave like usual. It closed normally and not being hang.I'm not sure if setting
block_on_close = False
is a good way or not.Issue #135 may have the same cause.
The text was updated successfully, but these errors were encountered: