Github user mike-jumper commented on a diff in the pull request:
https://github.com/apache/incubator-guacamole-server/pull/93#discussion_r119493530
--- Diff: src/protocols/ssh/ssh.c ---
@@ -318,11 +323,18 @@ void* ssh_client_thread(void* data) {
/* While data available, write to terminal */
int bytes_read = 0;
+ int timeout = 0;
for (;;) {
/* Track total amount of data read */
int total_read = 0;
+ /* Set up return value for keepalives */
+ int alive = 0;
+
+ /* Timer for keepalives */
+ int sleep = 0;
--- End diff --
`sleep` is a bit of a misnomer here, since we aren't going to actually
explicitly sleep for that period of time, but rather wait for additional data
for no more than this amount of time.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---