-
August 12th, 2022, 02:42 PM
#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 ?
-
August 12th, 2022, 03:53 PM
#2
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
-
By loksurya in forum Adapter SDKs
Replies: 4
Last Post: December 3rd, 2020, 03:49 PM
-
By kpturner in forum Adapter SDKs
Replies: 2
Last Post: December 3rd, 2012, 09:34 PM
-
By lstest in forum Adapter SDKs
Replies: 2
Last Post: February 24th, 2010, 11:09 AM
-
By CitiMan in forum Adapter SDKs
Replies: 8
Last Post: November 30th, 2006, 04:26 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:58 AM.
Bookmarks