Results 1 to 2 of 2
  1. #1

    Multiple create_session.js calls made before successfully establishing the connection

    Hi,
    I am using lightstreamer version 6 web client to connect to the LS server. I have observed in network logs that multiple create_session.js call is made before the connection is established successfully.

    LS_cause for the first call is new.api
    and for others it is timeout.11.0

    Due to this, my initial request for data is delayed significantly. Let me know if this can be fixed in any way.
    Thanks

  2. #2
    Hi,

    The client issues multiple create_session requests because the server doesn’t send a response to the client. You can reduce the number of issued requests increasing the timeout interval the client waits for before attempting a new request (see ConnectionOptions#setConnectTimeout). The default is 4 seconds.

    Anyway I suggest you to investigate whether there are connectivity problem on your network before setting a connect timeout too big.

 

 

Similar Threads

  1. Multiple smartEndSnapshot calls
    By rajesh.palanisamy in forum Adapter APIs
    Replies: 7
    Last Post: June 1st, 2018, 09:40 AM
  2. create_session related issue.
    By Sathyaayyanar in forum Adapter APIs
    Replies: 5
    Last Post: August 24th, 2010, 09:32 AM
  3. Delay in notifyUser() causes erratic create_session behavior
    By brianjohnson in forum Adapter APIs
    Replies: 2
    Last Post: April 5th, 2010, 12:02 PM
  4. Replies: 9
    Last Post: June 3rd, 2009, 09:56 AM
  5. Replies: 1
    Last Post: November 8th, 2007, 08:31 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 11:08 PM.