Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2009
    Location
    n/a
    Posts
    6

    notifySessionClose sometimes not being called

    Hi,

    for our application we need to know exactly when a client disconnects from the server.

    Unfortunately in some cases (about 20% of all disconnects) Lightstreamer does not seem to notice that a client is no longer connected (notifySessionClose does not get called).

    Could you give us a hint, what might cause this problem?

    Many thanks in advance!

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    notifySessionClose is guaranteed to be eventually called for any session,
    that is, the same number of times notifyNewSession returns successfully.
    Compared with the corresponding client disconnection, it may just be delayed of a few seconds,
    depending on the <session_timeout_millis> configuration flag.

    If you can identify and replicate a case in which notifyNewSession returns successfully, then the client is closed, but notifySessionClose is never called,
    then please show us the Server log,
    taken with default log settings and the LightstreamerLogger.connections logger at INFO level.
    Some intermediate proxy might keep a streaming connection alive after the connection from the browser has been broken.

  3. #3
    Member
    Join Date
    Apr 2009
    Location
    n/a
    Posts
    6
    Hi,

    although it's a bit late, I would like to let you know that notifySessionClose WAS called.

    The problem was that we registered two different tables and we received notifySessionClose from one or the other table, but not from both.

    We have now fixed our problem.

    Thanks for your help!

 

 

Similar Threads

  1. Error: createEngine() has already been called
    By vaduganathan in forum Client SDKs
    Replies: 3
    Last Post: April 9th, 2010, 09:58 AM
  2. Table.onEndOfSnapshot not being called
    By jweber in forum Client SDKs
    Replies: 10
    Last Post: February 10th, 2010, 10:25 AM
  3. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter SDKs
    Replies: 8
    Last Post: November 30th, 2006, 05:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:08 AM.