Results 1 to 10 of 13

Hybrid View

  1. #1
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    To call success asynchronously is legal but it must execute "fast" or else the client will discard the connection as not working and will create a new session: can you confirm that this is what happens?

    How long does it take for the asynchronous response from the database to come back? You might increase the connect timeout to wait a bit longer for the DB response but this has a negative impact on the automatic fallback mechanisms for cases where there are real network issues so you should first try to make the DB faster. See http://www.lightstreamer.com/distros...ConnectTimeout

  2. #2
    Thanks for the info - that is useful to know. however when I set setCookieHandlingRequired to true the client still won't connect even if I remove the DB call completely (i.e. change the body of notifyUser simply to response.success(100000000,false); )

    Maybe there is a separate issue?

 

 

Similar Threads

  1. NotifyUser Header
    By milad.j in forum Adapter SDKs
    Replies: 1
    Last Post: November 4th, 2013, 09:23 AM
  2. How to get SessionId in .NET client code?
    By cwt237 in forum Client SDKs
    Replies: 6
    Last Post: September 19th, 2013, 01:05 PM
  3. Send data from DataAdapter based on user/sessionID
    By gal_nitzan in forum Adapter SDKs
    Replies: 1
    Last Post: February 12th, 2013, 09:16 PM
  4. Cookie support in android library
    By eoinoc in forum Client SDKs
    Replies: 1
    Last Post: October 15th, 2012, 09:21 AM
  5. Delay in notifyUser() causes erratic create_session behavior
    By brianjohnson in forum Adapter SDKs
    Replies: 2
    Last Post: April 5th, 2010, 12:02 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 10:38 AM.