Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Idle Timeout

Single Click discussions / bugs
Post Reply
vincentt
8
8
Posts: 14
Joined: 2011-07-28 23:08

Idle Timeout

Post by vincentt »

Hi,

We are using the 1.2.1.1 version and I am trying to get the IdleTimeOut Working on single click. We were originaly using the older version and the timeout was working. However in the newer version I am unable to get the timeout working. Once we connect to a system, if the user is idle we need the VNC session to be disconnected.

In code I did see that there is a variable named - UINT m_pref_IdleTimeout in vncpoperties.h file. I have set this to an UINT value like 60, but after leaving the screen idle for 60 seconds I see no disconnection. Reducing the value to like even 4, did nothing. What am I missing here?

I read the UINT timeout value from a configuration file by saying
m_pref_IdleTimeout =m_server->readconfig();

virtual UINT readconfig() is declared in Server.h

The other place where the m_pref_IdleTimeout is used is here
m_server->SetAutoIdleDisconnectTimeout(m_pref_IdleTimeout);

And the code in VNC Server.h is
virtual void SetAutoIdleDisconnectTimeout(const UINT timeout) {m_idle_timeout = timeout;};

What else can I check or is there any other way I can do the timeout?

Thanks,
Vincent
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Idle Timeout

Post by Rudi De Vos »

The idle timemout doesn't work anymore because server/viewer send keepalive messages to keep routers open.
So we needed another parameter, instead we use the idleinput, viewer doesn't use mouse/keyboard for x time

Parameter is set on server but negotiated with the viewer on connect.
Both viewer server need to be at least 1205
In source, search "IdleInputTimeout"


add
ultravnc.ini
[admin]
IdleInputTimeout=b

Remark
----------------------------
IdleInputTimeout=b
b > 60 -> disconnect after b seconds
b<60 after b seconds updates happen every 5 seconds ( slow mode)
---------------------------
vincentt
8
8
Posts: 14
Joined: 2011-07-28 23:08

Re: Idle Timeout

Post by vincentt »

Rudi,

Thanks a ton for your reply. Let me go ahead, try it and will let know.

Thanks,
Vincent
vincentt
8
8
Posts: 14
Joined: 2011-07-28 23:08

Re: Idle Timeout

Post by vincentt »

Rudi,

I need it for single-click VNC, I dont see an ultravnc.ini file used for Single-click VNC.

Any further hints?

Regards,
Vincent
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Idle Timeout

Post by Rudi De Vos »

Or you use 1.2.1.1 or SC ...

SC= 150k little winvnc exe
Ultravnc 1.2.1.1 winvnc.exe is almost 2000k

SC use his own old viewer and encryption plugins, you can download on top of the SC page

SC use helpdesk.txt but almost all settings are hardcoded.
Winvnc full has a lot of options in ultravnc.ini
Post Reply