Add timeout for handshake completion. #62

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@dacut
dacut commented Mar 21, 2012

This adds a mechanism for timing out a connection if the ssh handshake never completes.

When managing large fleets, we not-infrequently encounter cases where a host is alive enough to accept an SSH connection but not enough to accept commands. (I've seen this with failing disks, for example -- my hypothesis is enough of the ssh daemon is cached in memory, but the shell or other libraries can't be read.)

(Internal p4 CLN 5034409; patch approved for release via TT/0013249552)
author: pala@amazon.com

Cuthbert Merge Amazon change 5034409 to GitHub:
Add a mechanism for timing out a connection if the ssh banner never completes.
pala@amazon.com
r:cuthbert@amazon.com
ea5f65c
@lndbrg
Contributor
lndbrg commented Aug 14, 2014

@dacut sorry for the late reply! Do you think you can add som tests to this?

@lndbrg lndbrg added a commit to lndbrg/paramiko that referenced this pull request Feb 24, 2015
@lndbrg lndbrg Expose handshake timeout in the transport API.
This is a reimplementation of #62.
d1f7285
@lndbrg lndbrg referenced this pull request Feb 24, 2015
Merged

Timeout fixes #491

@bitprophet
Member

Rolling into #491

@bitprophet bitprophet closed this Feb 27, 2015
@bitprophet bitprophet added a commit that referenced this pull request Sep 30, 2015
@bitprophet bitprophet Rework changelog entries re #491 a bit
Closes #491, closes #62, closes #439
57106d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment