Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2007
    Location
    Boston
    Posts
    26

    config auto-reconnect interval

    Is there anyway we can configure the interval of reconnect retry? We terminate the LS session if user credential expires after long time inactivity. But LS automatically tries to reconnect and will be redirected to login page due to invalid credential. This results in thousands hits to our login server. So can we configure the interval to retry? Ideally we like it to try couple times with short interval. If all fails, then we like it to double/triple the interval each time. Is it possible? Thanks

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    If the reconnection fails because of an exception in notifyUser on the Metadata Adapter, then the onServerError callback is invoked in client code with error code 1.
    In this case, there is no automatic reconnection. Any further attempt has to be issued by custom code, through a call to changeStatus.
    Hence, I can't understand in which conditions you experience a sequence of automatic reconnection attempts.

    May you also specify in which way you "terminate the LS session"?
    Normally, the client is not expected to try a reconnection when a session is explicitly interrupted, either on the client or on the server side.

 

 

Similar Threads

  1. How to config eclipse to debug lightstreamer.
    By gengliangyu2008 in forum General
    Replies: 2
    Last Post: November 10th, 2010, 11:40 AM
  2. How to config 2 adapter run on 01 server?
    By tuongkha in forum Adapter SDKs
    Replies: 2
    Last Post: March 18th, 2008, 10:11 AM

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 11:20 AM.