From 8c24c77d555312d4227ab79713a5c2333a76c623 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Wed, 14 Jun 2017 13:00:30 -0400 Subject: [PATCH] GUACAMOLE-203: Change timer to timeout --- src/protocols/ssh/settings.h | 4 ++-- src/protocols/ssh/ssh.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/protocols/ssh/settings.h b/src/protocols/ssh/settings.h index 101caf70..ea9f5ace 100644 --- a/src/protocols/ssh/settings.h +++ b/src/protocols/ssh/settings.h @@ -54,9 +54,9 @@ #define GUAC_SSH_DEFAULT_RECORDING_NAME "recording" /** - * The default polling timer for SSH activity in milliseconds. + * The default polling timeout for SSH activity in milliseconds. */ -#define GUAC_SSH_DEFAULT_POLL_TIMER 1000 +#define GUAC_SSH_DEFAULT_POLL_TIMEOUT 1000 /** * Settings for the SSH connection. The values for this structure are parsed diff --git a/src/protocols/ssh/ssh.c b/src/protocols/ssh/ssh.c index 59039bb6..afbfe331 100644 --- a/src/protocols/ssh/ssh.c +++ b/src/protocols/ssh/ssh.c @@ -343,7 +343,7 @@ void* ssh_client_thread(void* data) { } /* If keepalive is not configured, sleep for the default of 1 second */ else - timer = GUAC_SSH_DEFAULT_POLL_TIMER; + timer = GUAC_SSH_DEFAULT_POLL_TIMEOUT; /* Read terminal data */ bytes_read = libssh2_channel_read(ssh_client->term_channel,