SFSZone isActive not working from admin tool

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

itsmylifesoham
Posts: 186
Joined: 16 Oct 2011, 14:33

SFSZone isActive not working from admin tool

Postby itsmylifesoham » 13 May 2013, 10:45

Hello,

I am using the openspace 2 demo as a client. Using the latest server 2.6.0 .
I wanted to test out the zone monitor module's option to monitor a zone and set the isActive to false.

1. I had a logged in user in that zone
2. i set the isActive flag to false at runtime.
3. User did not get disconnected.
4. I opened another client and as expected he could not join the zone which was made inactive.

However the documentation says this about sfsZone's isActive flag.

"Checks if the Zone is currently enabled in the system or not. Inactive Zones won't allow anyone to login. You can deactivate a Zone at runtime (from the AdminTool) if you are planning to remove it. All Users will be disconnected. "

However the connected user did not get disconnected.
Is this a bug or expected behaviour?

Thanks
Soham
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSZone isActive not working from admin tool

Postby Lapo » 13 May 2013, 10:55

Thanks for reporting. We'll take a look and let you know asap.
Since we're working on version 2.7, if it is a bug we'll make sure to fix it before the release.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSZone isActive not working from admin tool

Postby Lapo » 14 May 2013, 10:21

UPDATE: I've done a quick test and I wasn't able to find anything out of order.
When I turn off the isActive switch and hit the Submit button I do see that all previous users are kicked out and no new user can login.

Can you please check your server side logs and see if any error shows up when you turn the Zone off?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
itsmylifesoham
Posts: 186
Joined: 16 Oct 2011, 14:33

Re: SFSZone isActive not working from admin tool

Postby itsmylifesoham » 14 May 2013, 17:19

Hi,

Attached is a log.

*Using openspace 2 flex demo swf for client

1. had one user connected (sohma)
2. set isactive flag to false and submitted.
3. tried connecting another user (did not connect)

Code: Select all

14 May 2013 | 22:14:18,462 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-1 | openspace.utils.Logger |     | [OpenSpace] User sohma [1] requested path from (3, 11, 0) to (2, 9, 0) on map 'osExample1#m4_House2Outside'
14 May 2013 | 22:14:18,462 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-1 | openspace.utils.Logger |     | [OpenSpace] Path to (2,9,0) target coordinates found and sent to all users in the same room
14 May 2013 | 22:15:00,291 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 8, Type: DEFAULT, Logged: No, IP: 127.0.0.1:11085 } on Server port: 9933 <---> 11085
14 May 2013 | 22:15:00,384 | INFO  | com.smartfoxserver.v2.controllers.SystemController-1 | v2.api.SFSApi |     | Login error: Zone: osExample1 is not active!. Requested by: { Id: 8, Type: DEFAULT, Logged: No, IP: 127.0.0.1:11085 }
14 May 2013 | 22:15:00,525 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 8, Type: DEFAULT, Logged: No, IP: 127.0.0.1:11085 }
14 May 2013 | 22:15:01,962 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 9, Type: DEFAULT, Logged: No, IP: 127.0.0.1:11086 } on Server port: 9933 <---> 11086
14 May 2013 | 22:15:01,978 | INFO  | com.smartfoxserver.v2.controllers.SystemController-1 | v2.api.SFSApi |     | Login error: Zone: osExample1 is not active!. Requested by: { Id: 9, Type: DEFAULT, Logged: No, IP: 127.0.0.1:11086 }
14 May 2013 | 22:15:02,087 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 9, Type: DEFAULT, Logged: No, IP: 127.0.0.1:11086 }
14 May 2013 | 22:15:08,619 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-1 | openspace.utils.Logger |     | [OpenSpace] User sohma [1] requested path from (2, 9, 0) to (4, 9, 0) on map 'osExample1#m4_House2Outside'
14 May 2013 | 22:15:08,634 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-1 | openspace.utils.Logger |     | [OpenSpace] Path to (4,9,0) target coordinates found and sent to all users in the same room
14 May 2013 | 22:15:08,947 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-3 | openspace.utils.Logger |     | [OpenSpace] User sohma [1] requested path from (4, 9, 0) to (6, 11, 0) on map 'osExample1#m4_House2Outside'
14 May 2013 | 22:15:08,947 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-3 | openspace.utils.Logger |     | [OpenSpace] Path to (6,11,0) target coordinates found and sent to all users in the same room
14 May 2013 | 22:15:09,572 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Map load request received from user sohma [1]
14 May 2013 | 22:15:09,587 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Joining user sohma [1] to Room 'House1Outside' [5]
14 May 2013 | 22:15:09,587 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Room 'House1Outside' [5] joined; now loading associated map 'osExample1#m3_House1Outside
14 May 2013 | 22:15:09,587 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Loading assets library for map 'osExample1#m3_House1Outside'
14 May 2013 | 22:15:09,587 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Library 'osExample1' already available in cache
14 May 2013 | 22:15:09,587 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Map 'osExample1#m3_House1Outside' already available in cache
14 May 2013 | 22:15:09,603 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Map 'osExample1#m3_House1Outside' sent to user sohma [1]
14 May 2013 | 22:15:13,509 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] User sohma [1] requested path from (13, 7, 0) to (11, 9, 0) on map 'osExample1#m3_House1Outside'
14 May 2013 | 22:15:13,509 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-2 | openspace.utils.Logger |     | [OpenSpace] Path to (11,9,0) target coordinates found and sent to all users in the same room
14 May 2013 | 22:15:13,869 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-1 | openspace.utils.Logger |     | [OpenSpace] User sohma [1] requested path from (12, 8, 0) to (10, 11, 0) on map 'osExample1#m3_House1Outside'
14 May 2013 | 22:15:13,869 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-1 | openspace.utils.Logger |     | [OpenSpace] Path to (10,11,0) target coordinates found and sent to all users in the same room
14 May 2013 | 22:15:14,353 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-3 | openspace.utils.Logger |     | [OpenSpace] User sohma [1] requested path from (12, 9, 0) to (12, 5, 0) on map 'osExample1#m3_House1Outside'
14 May 2013 | 22:15:14,353 | INFO  | com.smartfoxserver.v2.controllers.ExtensionController-3 | openspace.utils.Logger |     | [OpenSpace] Path to (12,5,0) target coordinates found and sent to all users in the same room
14 May 2013 | 22:15:15,603 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 5, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:11041 }
14 May 2013 | 22:15:15,603 | INFO  | SocketReader | v2.entities.SFSZone |     | User: sohma was disconnected.
14 May 2013 | 22:15:15,603 | INFO  | SocketReader | v2.api.SFSApi |     | User disconnected: { Zone: osExample1 }, ( User Name: sohma, Id: 1, Priv: 0, Sess: 127.0.0.1:11041 ) , SessionLen: 298953, Type: FlashPlayer:StandAlone:WIN 10,2,153,1
14 May 2013 | 22:15:23,853 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 7, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:11058 }
14 May 2013 | 22:15:23,853 | INFO  | SocketReader | v2.entities.SFSZone |     | User: sfsadmin was disconnected.
14 May 2013 | 22:15:23,853 | INFO  | SocketReader | v2.api.SFSApi |     | User disconnected: { Zone: --=={{{ AdminZone }}}==-- }, ( User Name: sfsadmin, Id: 2, Priv: 0, Sess: 127.0.0.1:11058 ) , SessionLen: 215531, Type: FlashPlayer:PlugIn:WIN 11,7,700,202


the log has the entry "osExample1 is not active!" when the 2nd user tried connecting.
But as you can see the next entries are about sending sohma the maps when sohma tried to switch rooms after isActive was set to false.


Regards
Soham
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSZone isActive not working from admin tool

Postby Lapo » 15 May 2013, 13:16

Hi,
my colleague was finally able to reproduce the problem. I was looking on the server side and noticed that all clients where removed but I didn't notice that the client itself didn't receive a disconnection event.

We'll add the fix in the next release, which is due in a couple of weeks.
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 65 guests