[X2Go-Dev] [RFC] [PATCH] Raise SSH connection timeout to 60 seconds.
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Wed Feb 29 16:42:23 CET 2012
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 at 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=db39c41e27721872a3c235298c42c41d202d35b6
Mike
--
DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20120229/526cd141/attachment.pgp>
More information about the x2go-dev
mailing list