It seems that this works a lot better when I use a shared variable to establish the SSH connection and port forward. Since I'm developing a multi-threaded service with this, it would seem to make sense to basically establish the SSH connection and port forward a single time when the service starts up and simply leave it connected. When I use the library in this manner, I have no hanging issues with opening my MYSQL database connection. Hope this helps!
↧