Comments (8)
Pulled down the memoize-backend
branch but that does not fix the issue. After the fifth command still:
cap aborted!
Connection refused - connect(2)
like you would expect.
from sshkit.
I love what Mina was trying to do by queueing commands into a single connection.
Not suggesting anyone rewrite the Capistrano command backend, mind you. 😸 But it seems better to pool the (costly) connection as much as possible.
from sshkit.
I suggested trying the following to the last person that ran into this: http://www.cyberciti.biz/faq/linux-unix-reuse-openssh-connection/
I'm not sure if Net::SSH is smart enough to do that, but it seems sane to me.
Maybe that's a way to keep this pooling out of SSHKit, and push it down to the layer where I think it belongs.
(I'm not totally surprised that my branch doesn't work, I don't even know if the memoisation is working.
from sshkit.
In combination with a .ssh/config
in the project directory, that would work for SSHKit.
from sshkit.
Inneresting! I am on the go now, but will definitely check that out soon.
Op 5 dec. 2013 om 15:40 heeft Lee Hambley [email protected] het volgende geschreven:
In combination with a .ssh/config in the project directory, that would work for SSHKit.
—
Reply to this email directly or view it on GitHub.
from sshkit.
Net::SSH doesn't pick that up, regular ssh
does though. It's a nice technique, definitely useful. Unfortunately, not for this particular problem.
from sshkit.
Thanks for checking Net::SSH, maybe @delano has some idea of of we could
support that in netssh?
Sent from my Nexus 4.
On 5 Dec 2013 20:53, "Joost Baaij" [email protected] wrote:
Net::SSH doesn't pick that up, regular ssh does though. It's a nice
technique, definitely useful. Unfortunately, not for this particular
problem.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-29931616
.
from sshkit.
I think this can be closed now.
Connection pool is implemented and working.
/cc @leehambley
from sshkit.
Related Issues (20)
- undefined method `[]' for nil:NilClas HOT 5
- within(dir) fails now when dir is an empty string or nil HOT 3
- Upgrade to mocha 1.10+ HOT 1
- Unknown constant SSHKit::MappingInteractionHandler HOT 5
- getaddrinfo HOT 5
- connection pool session keepalive HOT 5
- whoami and id -a return different users HOT 16
- "connection closed by remote host" (JRuby / Capistrano) HOT 6
- Exports added by :with are ineffective when :user is specified
- Using a single tunnel/gateway/jump host to connect to multiple hosts HOT 5
- Any way to set the ssh port in the DSL? HOT 1
- `could not settle on host_key algorithm (SSHKit::Runner::ExecuteError)` with certificate based authentication HOT 1
- Connections with openssl-3.0.0 fail with incompatibility error HOT 1
- Issue with dependency versions (net-ssh and net-scp versions are incompatible) HOT 1
- Connection pending forever if command to execute is long HOT 2
- Is there travis-ci.com build? HOT 2
- pls delete this issue.
- download! method doesn't close file HOT 1
- Dependency Issue in i18n with the latest version of sshkit HOT 2
- SFTP transfer does not work with Ruby 2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshkit.