Skip to content

GUACAMOLE-2233: Make guacd client timeout configurable - #710

Open
mbayou-prolific wants to merge 1 commit into
apache:mainfrom
prolific-oss:GUACAMOLE-2233-configurable-client-timeout
Open

GUACAMOLE-2233: Make guacd client timeout configurable#710
mbayou-prolific wants to merge 1 commit into
apache:mainfrom
prolific-oss:GUACAMOLE-2233-configurable-client-timeout

Conversation

@mbayou-prolific

Copy link
Copy Markdown

Summary

Makes the timeout used while waiting for messages from connected Guacamole clients configurable while preserving the existing 15-second default.

The timeout can be configured through:

  • client_timeout in the [server] section of guacd.conf
  • -T MILLISECONDS on the guacd command line
  • CLIENT_TIMEOUT when using the official guacd Docker image

The configured value is applied both while waiting for the initial select instruction and while handling messages from connected users. Invalid, zero, negative, and unsafe values are rejected.

Motivation

GUACAMOLE-2233 documents Chrome and Edge delaying client keepalive messages beyond the hard-coded 15-second timeout when the browser is minimized or occluded. This can cause otherwise healthy sessions to be disconnected. Operators currently need to rebuild guacd to adjust the timeout.

Keeping the default unchanged avoids altering existing deployments, while exposing the timeout allows deployments affected by browser timer throttling or intermittent relays to select an appropriate grace period.

Testing

  • Clean Alpine 3.18 build of guacamole-server and guacd
  • make -C src/guacd/tests check
  • 2 timeout parsing tests passed

@mbayou-prolific
mbayou-prolific marked this pull request as ready for review August 27, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant