Decrease search delay

When the server isn't running and the client set to not auto detect and with ip set in manual hubs, the client reports that the server cannot be connected to every 10 sec, so if the server comes online it may take up to 10 sec for the client to connect to it.

How do i decrease this delay and what is the lowest possible (1 sec would be Perfect)

Thanks in advance.

#2

1. Exit the client
2. On the client machine edit c:\Users\<username>\AppData\Roaming\vhui.ini
3. Under the [General] section change the AutoRefreshLookupPeriod to something smaller (in seconds e.g 5) 1 second is probably too small.

#3

I set it up to 5s and saved the file then started the client and it still says cannot find server every 10s

#4


[General]
AdminMode=0
HideMenuItems=
MainFrameWidth=400
MainFrameHeight=243
SSLCAFile=
AutoFind=0
ReverseLookup=0
AutoMinimize=0
AutoRefreshLookupPeriod=5
SSLClientCert=
SetAddressInstanceId=0
AutoUseDelaySec=0
SSLPort=7574
TurnOffAutoUseOnFail=1
Language=EN-US
[Settings]
ManualHubs=192.168.1.30:7575
[Transport]
CompressionLimit=384
HighCompressionLimit=16384
PingInterval=3
PingTimeout=10

The only thing i added was the ip address the rest is self made by client.

Also i have set the compression rate to a diffrent no in the server config, which one will be used , The client config or server config.

#5

Actually that is the correct behavior. It works like this

1. Virtualhere client tries to make a connection to the manual hub
2. This process is not instantaneous, it take about 5 seconds to try to make a connection and wait for a failure or successful connection
3. Virtualhere now waits 5 seconds before the next lookup is triggered

Therefore you see around a 10 second delay

#6

If i set it to 1 sec the search still takes 10 s instead of 6s

#7

Looking further into the server source code actually it will take about 8 seconds to try to connect rather than 5 but it will fluctuate around 5-8 seconds so if you put 1 or 5 seconds it will still be about 10seconds between retries. Therefore the minimum effective retry time is about 10 seconds. Its not possible to get this lower as the process of connecting to a server takes some time as lookup/network latencies etc need to be handled correctly.

#8

If i start the client with the server already running it connects instantlt.

Can you make the reconnect like it.

#9

No