connection attempt timeout - possible feature?
Jim Knoble
jmknoble at pobox.com
Thu Jul 5 04:46:00 EST 2001
Circa 2001-Jul-03 23:42:42 -0500 dixit mouring at etoh.eviladmin.org:
: This was talked about on efnet #unixhelp about a week ago while talking
: about why ssh takes such a long time to timeout. It's a feature of the OS
: and the connect() function call in question, IIRC.
:
: So in theory one could wrap the call in sshconnect.c (both places) with a
: timer to interrupt connect(). Not sure if there is a cleaner way off
: hand.
You could also do a non-blocking connect(), together with a select()
with timeout.
--
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/
| jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 249 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010704/577c95a6/attachment.bin
More information about the openssh-unix-dev
mailing list