# Want to set the VNC timeout from the configuration file

**URL:** <https://discourse.openondemand.org/t/want-to-set-the-vnc-timeout-from-the-configuration-file/3931>\
**Category:** Get Help\
**Tags:** feature-request\
**Created:** [December 13, 2024, 12:07pm UTC](https://discourse.openondemand.org/t/want-to-set-the-vnc-timeout-from-the-configuration-file/3931 "2024-12-13T12:07:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnakao](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mnakao/32/1001_2.png) [@mnakao](https://discourse.openondemand.org/u/mnakao)\
**Post date:** [December 13, 2024, 12:07pm UTC](https://discourse.openondemand.org/t/want-to-set-the-vnc-timeout-from-the-configuration-file/3931/1 "2024-12-13T12:07:36Z")

</div>

Dear developers.

We use OOD 3.1.10 and turbovnc-3.1.1-1.  
We are having trouble with what is written in the following thread:

> [@Websockify timeout?](https://discourse.openondemand.org/t/websockify-timeout/3389/8):
>
> I had the same issue with OOD 3.1.4. I solved the issue by setting the timeout to 10 seconds. This may be caused by using a slow ARM CPU.

Due to the low CPU power of the machines with container we use, the 5 second time limit of VNC is often too short. So every time I install a new OOD I update it to a higher value manually, but sometimes I forget.

```auto
# ood_core/batch_connect/templates/vnc.rb
elif [$counter -ge 5]; then
  # timeout after ~5 seconds
  echo "[websockify]: timed-out :(!" >&2
  return 1

```

So, is it possible to modify OOD so that I can change the VNC timeout in seconds using a variable ?  
For example, variables could be written in files under /etc/ood, or in submit.yml for each application.

Best,

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [December 13, 2024, 2:57pm UTC](https://discourse.openondemand.org/t/want-to-set-the-vnc-timeout-from-the-configuration-file/3931/2 "2024-12-13T14:57:52Z")

</div>

4.0 is going to have a config/environment variable. You’d use the config `websockify_timeout_seconds` just like other vnc batch\_connect configs in your submit.yml.erb or cluster.d file. The environment variable you could set it all sorts of places.

> <https://github.com/OSC/ood_core/blob/4342e29119c9db3a4860940f83191ba1cb760156/lib/ood_core/batch_connect/templates/vnc.rb#L137>

---

<div class="post-metadata">

**Author:** ![mnakao](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mnakao/32/1001_2.png) [@mnakao](https://discourse.openondemand.org/u/mnakao)\
**Post date:** [December 13, 2024, 11:37pm UTC](https://discourse.openondemand.org/t/want-to-set-the-vnc-timeout-from-the-configuration-file/3931/3 "2024-12-13T23:37:35Z")

</div>

Thank you for the great information !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [June 11, 2025, 11:38pm UTC](https://discourse.openondemand.org/t/want-to-set-the-vnc-timeout-from-the-configuration-file/3931/4 "2025-06-11T23:38:27Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
