Skip navigation
Currently Being Moderated

Weird issue: application.onDisconnect delayed in Chrome

Oct 25, 2012 5:36 PM

Hi,

 

I have an application in which we use application.onDisconnect when a user logs out.

In all browsers, we can see in the FMS admin console that the user has indeed been disconnected, except when the user uses Chrome.

It can take minutes before the application.onDisconnect is fired.

 

Known issue? Any work around?

 

Thank you

 
Replies
  • Currently Being Moderated
    Oct 26, 2012 5:09 AM   in reply to Chicohuman

    Can you please check the application log on the server. You must check the log entry time in the log. It may happen chrome is delaying the update of event on flash.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 30, 2012 7:31 AM   in reply to Chicohuman

    I tried to reproduce the issue on my end. I couldn't notice any delay in the invoke of application.onDisconnect when chrome browser is used. It was called instantaneously.

     

    I created an application and added the following logic in the main.asc

     

    application.onConnect=function(clientObj){

              trace("          on connect ");

              return true;

    };

     

     

    application.onDisconnect = function(clientObj){

              trace("application.onDisconnect called");

    }

     

    I connected and disconnected using a sample client and there was no delay in calling application.onDisconnect in admin console live logs.

     

    Can you please share the version of the flash player you are using?

     

    Note : I tried to reproduce the issue by calling explicitly disconnect from client as well as closing the browser.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 30, 2012 11:07 PM   in reply to Chicohuman

    I will try to investigate with RTMFP and let you know.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 2, 2012 12:32 AM   in reply to Manish K.A

    I tried the same scenarios with RTMFP. But I was getting application.onDisconnect immeadiately.

     

    FP used : 11.4.31.110

    Chrome : 22.0.1229.94


     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2012 9:28 PM   in reply to Chicohuman

    I'm not able to view the video you have posted.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2013 11:37 AM   in reply to Chicohuman

    Any solution for this?

    I think its such a huge problem that i cant use rtmfp on chrome.

    I cant tell my chomre customers "plz disable pepper flash plugin to user our service".

     

    In this way rtmp is the only solution, right?

     

    Anyway I'm very glad cos I've spent hours to find the solution in the FMS configuration XMLs, before this post.

    Google its your turn

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 6, 2013 7:37 PM   in reply to Chicohuman

    any news of this bug ?

    I just reproduced it today, april 2013 with last Chrome 26.01.1410.43

    with RTMFP connection. the instance leaves after 10 hours! :-\

    RTMP works well

    I see some NetStream instances leave, but NetConnection stays

    maybe is there any related point with persistent http 1.1 ?

    tried on windows XP SP3

    but it works on MAC os X

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 9, 2013 10:14 PM   in reply to G-Software

    Any news 11 months after ?

    could any Adobe support member answer and tell users about the status ?

    I recall the problem.

    if RTMFP is used application.onDisconnec() is delayed or doesn't work with Chrome (on windows XP at least)

     

    thanks !

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 23, 2014 4:20 PM   in reply to G-Software

    I found a temporarly solution.

    call onbeforeunload javascript event and do a NetConnection.call()  your own server side function so you can fire application.disconnect()

     

    Cheers

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points