Results 1 to 2 of 2
  1. #1

    notifySessionClose is not getting called sometimes

    Hi,

    I have observed this issue that sometimes when a user disconnects "notifySessionClose" is not getting called.
    Also some time "unsubscribe(String itemName)" is also not getting triggered if user have active subscription.
    Do we need to change some config to fix this ?

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi loksurya,

    No configurations are needed, because notifySessionClose and unsubscribe should always be called.

    Please consider that there should be no exceptions to this behavior; this is because a successful notifyNewSession is always eventually followed by notifySessionClose; unless notifyNewSession fails.
    What can happen is that the session is not closed immediately but a few seconds must pass before a configurable timeout occurs.

    As for unsubscribe, please note that this is only called when there are no more active subscriptions for the Item.
    This means that if the same Item is subscribed by 10 clients only when all 10 have closed their subscription the relative unsubscribe will be called.

    However, if despite the above it seems to you that the issue persists, you should collect the server log of one of these cases after setting these levels (lightstreamer_log_conf.xml):

    <logger name="LightstreamerLogger.subscriptions" level="DEBUG"/>
    <logger name="LightstreamerLogger.requests" level="WARN"/>


    Regards,
    Giuseppe

 

 

Similar Threads

  1. Replies: 4
    Last Post: December 3rd, 2020, 04:49 PM
  2. My notifyUserMessage method is not getting called
    By kpturner in forum Adapter SDKs
    Replies: 2
    Last Post: December 3rd, 2012, 10:34 PM
  3. notifySessionClose sometimes not being called
    By lstest in forum Adapter SDKs
    Replies: 2
    Last Post: February 24th, 2010, 12:09 PM
  4. 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 05:26 PM.