No need for keep-alive in output thread anymore.

This commit is contained in:
Michael Jumper 2013-10-09 16:09:01 -07:00
parent bc3c8a31c5
commit 926b681e38

View File

@ -74,31 +74,6 @@ void* __guacd_client_output_thread(void* data) {
/* Guacamole client output loop */ /* Guacamole client output loop */
while (client->state == GUAC_CLIENT_RUNNING) { 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 */ /* Handle server messages */
if (client->handle_messages) { if (client->handle_messages) {