Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2016
    Location
    London
    Posts
    1

    Polling connection from iOS

    Hello,
    is there a way to go back to a 'stream' connection after the LS client library switched to a polling connection? I simulated a network problem (actually I just set a breakpoint and waited...) and the client library, after resuming, switched to the polling mode (since the enableStreamSense was set to YES). I started to get a lot of binding_session, that actually simulate a stream connection, but how long the polling mode will continue? Does the LS client library have the ability to detect that the network is functioning correctly and switch, automatically, from polling mode to the stream again?

    Thank you

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    93
    Hello Simone,

    this behavior changed with client library versions. Assuming you are talking about the native iOS client library, up to version 1.4.x it switches back to a streaming connection only if a connection error (or timeout) occurs while polling. The rationale here is that you want to keep a stable connection, whatever algorithm it is using, unless there is a clear signal that the underlying network may have changed.

    Beginning with the Unified Client API version, i.e. from version 2.0.x, it switches back to a streaming connection also if it detects that its client IP address has changed (the client IP is reported by the Server when the session is bound). Again, this is another signal that the underlying network has changed.

    Let us know if you need more information.
    Best regards,

    Gianluca

 

 

Similar Threads

  1. Connection timed out on empty credentials on iOS [iOS]
    By Anatoly Gurfinkel in forum Client APIs
    Replies: 9
    Last Post: July 6th, 2015, 05:24 PM
  2. Replies: 4
    Last Post: February 27th, 2015, 07:58 AM
  3. Replies: 3
    Last Post: June 26th, 2014, 03:03 PM
  4. Replies: 1
    Last Post: January 19th, 2011, 11:23 AM
  5. Replies: 3
    Last Post: February 1st, 2008, 09:49 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 07:40 PM.