Long Client reconnect times

Topics for the MainLobby 4 client
ggraef
Member
Member
Posts: 96
Joined: Fri Oct 24, 2003 10:00 am
Contact:

Long Client reconnect times

Postby ggraef » Fri Sep 26, 2014 10:17 am

I've always had problems with clients needing to reconnect but lately the reconnect times have gotten much worse. Here is an example from the MLServer logs from a wireless client that shows a 16 second delay. This matches what is seen on the client as a wait time before it responds to commands. The client is set to keep radio active, and has a scheduled job that pings the mlserver machine every two minutes:

Code: Select all

9/26/2014 9:41:01 AM   Server_ConnectionsChanged   Connection from 192.168.0.176 accepted
9/26/2014 9:41:01 AM   Client   Tagged by [kitchen]
9/26/2014 9:41:17 AM   MLProcess Primary [1]   (1) [System.Client.Startup|kitchen] from [kitchen]


As a test, a started a client on the MLServer PC and disconnected it (via the options/connect menu), then reconnected it. There is a still a 9 second delay:

Code: Select all

9/26/2014 10:04:24 AM   Server_ConnectionsChanged   Connection from 127.0.0.1 accepted
9/26/2014 10:04:24 AM   Client   Tagged by [myClient1]
9/26/2014 10:04:33 AM   MLProcess Primary [1]   (1) [System.Client.Startup|myClient1] from [myClient1]


Is there anything that can be done to prevent client disconnects? Is there anything that could be causing the delays in the client startup?

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: Long Client reconnect times

Postby CinemarDave » Fri Sep 26, 2014 10:47 am

How many server variables do you have? And how many Clients are connected?

When the MainLobby client connects and you see the Tagged event log entry two lines of code are immediately executed after that

SendVariables()
System.Client.Startup|{{clientname}}

On your system is it taking 9 seconds to send all the server variables out to your clients. Note that SendVariables broadcasts all server variables to all the MainLobby clients. This is what is eating the 9 seconds.

MainLobby will never close a connection by itself. Are the clients allowed to go to sleep? Is power management turning off the network card to conserve power?


Return to “MainLobby 4 Client”

Who is online

Users browsing this forum: No registered users and 1 guest