From 926b681e38183206f496f879e547491f802f148a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 9 Oct 2013 16:09:01 -0700 Subject: [PATCH] No need for keep-alive in output thread anymore. --- src/guacd/client.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/guacd/client.c b/src/guacd/client.c index 2880fab9..628d0568 100644 --- a/src/guacd/client.c +++ b/src/guacd/client.c @@ -74,31 +74,6 @@ void* __guacd_client_output_thread(void* data) { /* Guacamole client output loop */ while (client->state == GUAC_CLIENT_RUNNING) { - /* Occasionally send client NOP keep-alive */ - guac_timestamp timestamp = guac_timestamp_current(); - if (timestamp - last_ping_timestamp > GUACD_SYNC_FREQUENCY) { - - /* Record time of last synnc */ - last_ping_timestamp = timestamp; - - /* Send NOP */ - if (guac_protocol_send_nop(socket)) { - guacd_client_log_guac_error(client, - "Error sending \"nop\" keep-alive"); - guac_client_stop(client); - return NULL; - } - - /* Flush */ - if (guac_socket_flush(socket)) { - guacd_client_log_guac_error(client, - "Error flushing output"); - guac_client_stop(client); - return NULL; - } - - } - /* Handle server messages */ if (client->handle_messages) {