Skip to main content
Participating Frequently
January 2, 2011
Question

Netconnection issue

  • January 2, 2011
  • 1 reply
  • 1174 views

Hey,

I have a big issue with FMS 3.0 and specially with netconnections. Sometimes, when one client closes its netconnection, all the other clients of the FMS are also disconnected automatically. I am trying to find an explanation but nothing... It seems to be a bug as, most of the time everything works very well, but sometimes (not often) this strange behaviour happens. I don't know what to do and it's really annoying as it affects the reliability of my application. Please, if you have any idea, enlighten me.

Thanks,

Ali

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    January 3, 2011

    Do you have application.onDisconnect handler defined in your server-side application code , if yes can you paste the code here.

    -Ali-Author
    Participating Frequently
    January 3, 2011

    Here is the code: (In the code, I have a shared object that update the status of the client being disconnected to "disconnected".)

    application.onDisconnect = function(client){

         if(client.nickname != "-1"){

              SharedObject.get("clients", false).setProperty(client.nickname, "disconnected");

         }

         application.disconnect(client);

         trace("Client disconnected");

    }

    Ali

    Participating Frequently
    January 3, 2011

    Code looks fine - i mean that should not be reason for all clients getting disconnected. Can you check in your core or master logs to see if there was any crash. I mean i want to see when all your clients gets disconnected is it because of the core crashing or for some other reason.