Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    afsdfa
    Posts
    4

    LSClient.OpenConnection is blocking without throwing exception

    LSClient.OpenConnection() is blocking without throwing exception. It used to throw exception immediately after a failed attempt.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    OpenConnection invokes the low level socket connection API (HttpWebRequest).
    The HttpWebRequest has its own timeout, which is not changed by Lightstreamer library.
    The cause of the request failure may determine whether or not a wait is involved.

    Which is your case?
    For instance, I see that a request to a local non-existing port fails immediately,
    whereas a request to a nonexisting domain fails after quite a long wait.
    In any case, a timeout check on OpenConnection is not provided by the library, hence the application should provide its own.

 

 

Similar Threads

  1. Strange exception
    By Alex Zherdev in forum Client APIs
    Replies: 1
    Last Post: December 1st, 2011, 09:33 AM
  2. Non-blocking IDataProvider.Subscribe
    By bartol82 in forum Adapter APIs
    Replies: 1
    Last Post: August 30th, 2011, 10:15 AM
  3. LSClient Not giving any error if the LS Server is not running
    By shreyaspurohit in forum Client APIs
    Replies: 6
    Last Post: December 15th, 2008, 01:27 PM
  4. DataProviderServer exception
    By ap7256 in forum Adapter APIs
    Replies: 2
    Last Post: October 18th, 2007, 10:15 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:07 PM.