From bc3c8a31c5e28aa96bc946f814d0000a1ba1bb13 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 9 Oct 2013 16:01:57 -0700 Subject: [PATCH] Require keep-alive on VNC protocol support socket. --- src/protocols/vnc/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocols/vnc/client.c b/src/protocols/vnc/client.c index 5598198e..22cb6fda 100644 --- a/src/protocols/vnc/client.c +++ b/src/protocols/vnc/client.c @@ -267,6 +267,9 @@ int guac_client_init(guac_client* client, int argc, char** argv) { else guac_client_data->listen_timeout = 5000; + /* Ensure connection is kept alive during lengthy connects */ + guac_socket_require_keep_alive(client->socket); + /* Attempt connection */ rfb_client = __guac_vnc_get_client(client);