This is probably not the answer you’re looking for, but perhaps it’s an option 
to trigger a host-OS-logoff instead of a VNC timeout?  In that case, guac 
doesn’t try reconnect.  Our setup currently works this way through RDP and a 
windows group policy auto-logoff, ymmv.




Daniel McCarty
Director of Engineering
W. H. Leary Co.
P. +1 708.444.4900
E. [email protected] | W. whleary.com<http://www.whleary.com>

From: Tushar Sheth <[email protected]>
Sent: Monday, March 14, 2022 1:38 PM
To: [email protected]
Subject: [External] source code changes to disable guac's auto-reconnect after 
vnc idle timeout?

Hey all- I've done some digging since my last post about this. Would be 
grateful for your direction. Happy also to pay for anyone's time if that's an 
option.

Apologies for this long post. We desperately need some help to get things going 
for an early customer we just scored.

Problem:
-->We have an idle timeout (15 mins) working via tigervnc server. The problem 
is, guacamole then automatically reconnects, which we want to disable.

Setup:
-->Guac: ubuntu 20.04 (on GCP) + guac 1.4.0 & guac-client built from source + 
tomcat9 + nginx reverse proxy & ssl + mysql auth
-->VM: vnc connection using tigervnc server to Kali Linux (on GCP)

Some solution ideas/questions (with contextual info):

1. 
Here<https://urldefense.proofpoint.com/v2/url?u=https-3A__drive.google.com_file_d_1u7xJfJyG0gv5C-5Fpv8vUpIpDNExjYjW87_view-3Fusp-3Dsharing&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=KfJK_i8bAAiKEOAyAm9y9vt5kSwc8dkKCDiCjPA9mhw&m=qQM1Az1JyHlxPiDHO_EM80TNZpgWjKbBHTP6ujMCObI&s=sIYrKrVJhxOJBsWyaM47okMD3oxUKuvj76-3VDUMfjc&e=>
 is a screenshot of the auto reconnect dialogue box that pops up after the VNC 
server does the idle timeout

2. The dialogue box language matches up with 
ERROR_CLIENT_203<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_guacamole-2Dclient_blob_ed7746e0612d569644277a2aa654c5eda4447c8e_guacamole_src_main_frontend_src_translations_en.json-23L80&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=KfJK_i8bAAiKEOAyAm9y9vt5kSwc8dkKCDiCjPA9mhw&m=qQM1Az1JyHlxPiDHO_EM80TNZpgWjKbBHTP6ujMCObI&s=bqScqGOaYPRBABiCErWGdCY6zzMUfSxxDqV5aONCXFk&e=>
 in the guacamole-client source code

3. Client error code 203 is designated as one of the error codes that triggers 
an auto reconnect in 
guacClientNotification.js<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_guacamole-2Dclient_blob_7e30b8682a28c50935874e6779281da4c548715e_guacamole_src_main_frontend_src_app_client_directives_guacClientNotification.js-23L95&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=KfJK_i8bAAiKEOAyAm9y9vt5kSwc8dkKCDiCjPA9mhw&m=qQM1Az1JyHlxPiDHO_EM80TNZpgWjKbBHTP6ujMCObI&s=par5TiQVuNa_ly9L7NApQvRnsmg2A6218_HgEWz2yu4&e=>

4. Could I disable the reconnect simply by commenting out line 95 in 
guacClientNotification.js? (I get that this is not a recommended way to do it)

5. If I do that, can I activate the change simply by restarting guacd or do I 
need to make the change in source and then reinstall guacamole-client?

6. If modifying guacClientNotification.js is not the way, then what do I need 
to modify to accomplish my goal?

7. I've seen past listserv messages explaining that 
GUACAMOLE-208<https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_GUACAMOLE-2D208&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=KfJK_i8bAAiKEOAyAm9y9vt5kSwc8dkKCDiCjPA9mhw&m=qQM1Az1JyHlxPiDHO_EM80TNZpgWjKbBHTP6ujMCObI&s=ZLy8o2tYo_Y0s6_C_MSufaNmrdqmrX_BaX_jeR-TaQk&e=>
 might have intended to address this, so perhaps that didn't fully work and 
guacamole is still not categorizing idle timeout under the proper error code 
(or maybe it's fixed for rdp but not vnc). However, that seems like a big lift 
to sort out quickly- I would really welcome a quick hacky solution even if it 
isn't ideal. Even a way to disable auto-reconnect across the board would be 
fine for now.

7. Is your ideal rec to do this via an extension? If yes, any pointers to get 
us started? I've read the documentation, but I don't understand how we could 
use an extension to override the auto-reconnect trigger.

Thank you!!

Tushar

Reply via email to