Re: [JSch-users] JSchException "timeout in wating for rekeying process." caused by waiting for user
Status: Alpha
Brought to you by:
ymnk
From: Atsuhiko Y. <ym...@jc...> - 2016-06-20 09:26:25
|
Hi, Sorry for my long long delay. On Mon, Jul 6, 2015 at 5:58 PM, Alexander Koshevoy <ale...@je...> wrote: > We are using JSch library 0.1.52 and have a difficulty dealing with > timeout on establishing connection. The problem is that after a user > answers prompt dialog "The authenticity of host '***' can't be > established. RSA key fingerprint is ***. Are you sure you want to > continue connecting?" JSchException with "timeout in wating for rekeying > process." message is thrown by JSch Session (under some circumstances): ... > It seems that timeout value passed to Session#connect(int) method > applies both to user answer time from UI and server interaction time. > Might it be justly if user interaction had been excluded from timeout value? Here is a patch to exclude user interaction time from timeout value. Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk |