The flysystem module calls the plugin function ensure() in runtime requirements and cron hook. The plugin ensure() function calls connect() thus leading to lots of SSH calls to the target. This leads to very slow page loads depending the the SSH response time.
Visit the admin/config page and it leads to calling connect() to the target. Every cron run leads to calling connect().
First, the getAdapter() call in the Sftp.php plugin probably shouldn't call connect(). In the ensure() function, perhaps the connect() call should be placed in a check for force = TRUE.
Also, shouldn't the line (63) call getAdapter() rather than getting a new object? This would catch the missing adapter exception.
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.