From: Rob H. <for...@us...> - 2002-06-04 07:16:50
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv5471/bin Modified Files: sandweb-expect Log Message: *serious* double-edged sword here. * this checkin fixes a bug with large repositories/file, or maybe high-latency connections. I get this all the time on the LAN where I work, because our files are enourmous. Expect has a default timeout of 10 seconds, and that's not always long enough. I can set the default timeout to -1, but it seems to take SSH forever to timeout if the user gets the password wrong. Not sure how long, I waited a couple minutes, which is too long IMO. Anyway, I am going to check this in, I *think* I may be able to do something like keep "expect"ing a password prompt, if I get it three times than abort with "incorrect password" ( which would be cool because it would be much better than the crappy errors we get from sandweb-expect now :) Index: sandweb-expect =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb-expect,v retrieving revision 1.4 retrieving revision 1.5 diff -U2 -r1.4 -r1.5 --- sandweb-expect 23 Apr 2002 07:11:09 -0000 1.4 +++ sandweb-expect 4 Jun 2002 07:16:47 -0000 1.5 @@ -10,4 +10,6 @@ # input : vcs vcs_password vcs_command +set timeout -1 + if {[lindex $argv 0]=="unix_vcs"} { set system_username [lindex $argv 1] |