Results 1 to 3 of 3
  1. #1

    Subscription Timeout too fast

    I'm running LS v7.2.2 with a v8.0.7 webclient. The Meta and Data adapters are C# Core v6.

    I'm trying to increase the subscription timeout. I increased the subscription_timeout_millis setting in the lightstreamer_conf.xml file to 30 seconds but the unsubscribe method in the DataAdapter is called almost immediately after the client disconnects.

    This particular client unsubscribes to all subscriptions and then immediately disconnects from the server.

    Are there additional settings that must be changed to get LS to honor the subscription_timeout_millis?

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    718
    Hi rthompson,

    Please consider that the subscription_timeout_millis setting does not apply in case an explicit unsubscribe request has been received for that item.
    It applies only in cases where the unsubscription is implicit, due to the termination of the client session that requested the relevant subscription.
    The timeout was meant to address cases like a client just refreshing the page, with a quick re-connection after a disconnection, to save a couple of probably useless unsubscribe and subscribe calls to the Data Adapter.

    Regards,
    Giuseppe

  3. #3
    Ah OK. Didn't realize that was the use case. This makes sense now.

    Thanks for the quick reply.

 

 

Similar Threads

  1. Connection Timeout
    By rajesh.palanisamy in forum Client SDKs
    Replies: 1
    Last Post: August 22nd, 2018, 01:15 PM
  2. How to set connection timeout?
    By vpurohit in forum Client SDKs
    Replies: 1
    Last Post: September 23rd, 2014, 11:04 AM
  3. Increase Timeout for switching to samrt polling
    By afshin_a in forum Client SDKs
    Replies: 6
    Last Post: August 27th, 2011, 04:43 AM
  4. Replies: 5
    Last Post: July 17th, 2008, 10:01 AM
  5. Get <WARN> message: Reply too late.
    By aikobit in forum Adapter SDKs
    Replies: 9
    Last Post: July 8th, 2008, 01:57 AM

Tags for this Thread

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:50 PM.