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 <[email protected]>
---
 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=db39c41e27721872a3c235298c42c41d202d35b6

Mike

--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpFBoZWsUWPF.pgp
Description: Digitale PGP-Unterschrift

_______________________________________________
X2Go-Dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/x2go-dev

Reply via email to