Idle Timeout

Single Click discussions / bugs

Idle Timeout

Postby vincentt » 2016-10-13 19:02

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
vincentt
8
8
 
Posts: 14
Joined: 2011-07-28 23:08

Re: Idle Timeout

Postby Rudi De Vos » 2016-10-15 14:42

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)
---------------------------
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5472
Joined: 2004-04-23 10:21

Re: Idle Timeout

Postby vincentt » 2016-10-20 18:45

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

Postby vincentt » 2016-10-20 20:33

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
vincentt
8
8
 
Posts: 14
Joined: 2011-07-28 23:08

Re: Idle Timeout

Postby Rudi De Vos » 2016-10-22 20:57

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
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5472
Joined: 2004-04-23 10:21


Return to SC

Who is online

Users browsing this forum: No registered users and 2 guests