avatar timeout

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
danielfck
Posts: 12
Joined: 24 Sep 2009, 03:12
Contact:

avatar timeout

Post by danielfck »

hi there!

here is one big issue regarding the timeout on the avatar.

When the avatar want to change from ROOM_A to ROOM_B, the event is not triggered or dispatched.
later we found out that there could be a server disconnection since the avatar have been idle for about 10min.
is there any way to prevent this disconnection from happening?

please help!
anilone
Posts: 39
Joined: 24 Jul 2009, 03:54

Post by anilone »

Modify your server configuration "config.xml"
Refer and change the values of MaxUserIdleTime , MaxSocketIdleTime to a comfortable value of your choice
Anil
danielfck
Posts: 12
Joined: 24 Sep 2009, 03:12
Contact:

Post by danielfck »

hi!
we have tried putting this following values below:

<MaxUserIdleTime>9000</MaxUserIdleTime>
<MaxSocketIdleTime>9000</MaxSocketIdleTime>
<MaxIdleTime>9000</MaxIdleTime>

but after 5 minutes of inactivity, the avatar still cannot move from one room to another room.
How come this cannot work?


anilone wrote:Modify your server configuration "config.xml"
Refer and change the values of MaxUserIdleTime , MaxSocketIdleTime to a comfortable value of your choice
anilone
Posts: 39
Joined: 24 Jul 2009, 03:54

Post by anilone »

why you concluded that it was due to time out. Have you got "SFSEvent.onConnectionLost" notification?

Is there any error when you called joinRoom function? like SFSEvent.onJoinRoomError
Anil
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: avatar timeout

Post by Bax »

danielfck wrote:hi there!

here is one big issue regarding the timeout on the avatar.

When the avatar want to change from ROOM_A to ROOM_B, the event is not triggered or dispatched.
later we found out that there could be a server disconnection since the avatar have been idle for about 10min.
is there any way to prevent this disconnection from happening?

please help!
In one of the examples provided with OpenSpace room change is possible. Are you sure you are doing the proper steps in changing room? Do you have server-side or client-side errors logged?
Paolo Bax
The SmartFoxServer Team
Post Reply