The default of 10 seconds is pretty low, especially when using tcp_wrappers with the identd option turned on. Wait for a 60 seconds timeout. Signed-off-by: Mihai Moldovan <ionic@ionic.de> --- sshmasterconnection.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sshmasterconnection.cpp b/sshmasterconnection.cpp index 2626346..9c6626a 100644 --- a/sshmasterconnection.cpp +++ b/sshmasterconnection.cpp @@ -137,6 +137,7 @@ void SshMasterConnection::run() #endif // int verbosity=SSH_LOG_PROTOCOL; + long timeout = 60; my_ssh_session = ssh_new(); if ( my_ssh_session == NULL ) @@ -153,6 +154,9 @@ void SshMasterConnection::run() ssh_options_set ( my_ssh_session, SSH_OPTIONS_SSH_DIR, (mainWnd->getHomeDirectory()+"/ssh").toAscii()); #endif // ssh_options_set(my_ssh_session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity); + + ssh_options_set(my_ssh_session, SSH_OPTIONS_TIMEOUT, &timeout); + if ( !sshConnect() ) { QString err=ssh_get_error ( my_ssh_session ); -- 1.7.9
Hi Mihai, On So 26 Feb 2012 16:26:57 CET Mihai Moldovan wrote:
The default of 10 seconds is pretty low, especially when using tcp_wrappers with the identd option turned on. Wait for a 60 seconds timeout.
Signed-off-by: Mihai Moldovan <ionic@ionic.de>
sshmasterconnection.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sshmasterconnection.cpp b/sshmasterconnection.cpp index 2626346..9c6626a 100644 --- a/sshmasterconnection.cpp +++ b/sshmasterconnection.cpp @@ -137,6 +137,7 @@ void SshMasterConnection::run() #endif
// int verbosity=SSH_LOG_PROTOCOL;
long timeout = 60;
my_ssh_session = ssh_new(); if ( my_ssh_session == NULL ) @@ -153,6 +154,9 @@ void SshMasterConnection::run() ssh_options_set ( my_ssh_session, SSH_OPTIONS_SSH_DIR, (mainWnd->getHomeDirectory()+"/ssh").toAscii()); #endif // ssh_options_set(my_ssh_session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
ssh_options_set(my_ssh_session, SSH_OPTIONS_TIMEOUT, &timeout);
if ( !sshConnect() ) { QString err=ssh_get_error ( my_ssh_session );
1.7.9
Patch has been applied: http://code.x2go.org/gitweb?p=x2goclient.git;a=commitdiff;h=db39c41e27721872... Mike -- DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419 GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...