Results 1 to 6 of 6

Hybrid View

  1. #1
    well. to be honest.
    I used to create my own serial queue for LightStreamerConnection stuff.
    so it was blocked.
    now I use the global concurrent queue:
    Code:
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    
            @try
            {
                [_client openConnectionWithInfo:connectionInfo delegate:self];
    
            }
            @catch (LSPushServerException *exPushServer)
            {
            }
            @catch (LSPushConnectionException *exPushConn)
            {
            }
    
    
        });
    so that global queue is blocked while connecting with wrong credentials.

    Then I reconnect and I don't know what is happening to it.
    Anyway I don't see any previous blocks.


    and secondly, I'm not receiving didReceiveServerFailure:
    I receive
    didReceiveConnectionFailure
    with message
    Code:
    Connection failure: Connection timed out
    
    with no errorCode because it is LSPushConnectionException

    so if I would use my serial queue when shall I call closeConnection?
    Last edited by dollar8; April 29th, 2015 at 11:45 AM.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    If you see a callback to didReceiveConnectionFailure, instead of didReceiveServerFailure, and you are sure the issue is with credentials, then you may be incurring in a bug we have recently fixed.

    A version containing the fix has not yet been released, but if you contact support@lightstreamer.com, specifying the Server version you are using, I can provide you with a link to an update version of the client library.

 

 

Similar Threads

  1. Connection timed out on empty credentials on iOS [iOS]
    By Anatoly Gurfinkel in forum Client SDKs
    Replies: 9
    Last Post: July 6th, 2015, 04:24 PM
  2. Non-blocking IDataProvider.Subscribe
    By bartol82 in forum Adapter SDKs
    Replies: 1
    Last Post: August 30th, 2011, 10:15 AM
  3. Replies: 1
    Last Post: October 21st, 2009, 10:19 AM
  4. form POST method vs GET method
    By chuan_ckc in forum Client SDKs
    Replies: 1
    Last Post: August 20th, 2009, 10:29 AM
  5. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter SDKs
    Replies: 8
    Last Post: November 30th, 2006, 04:26 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:25 PM.