Results 1 to 9 of 9

Hybrid View

  1. #1
    Member
    Join Date
    Jan 2010
    Location
    London
    Posts
    9
    Quote Originally Posted by DarioCrivelli
    Streaming may be prevented by any intermediate node, typically by a proxy.
    It's a direct connection with only a network switch in between. There are no firewalls or proxies that could be blocking streaming.

    Quote Originally Posted by DarioCrivelli
    If you confirmed that the same client and the same Server can work in streaming with one Adapter Set and can't with another one, that would be really weird.
    There must be some other difference between the two cases.
    The example .Net code works correctly across the same connection.

    Quote Originally Posted by DarioCrivelli
    Anyway, as said, in the forthcoming release of Lightstreamer (.NET client library 1.4), OpenConnection, when configured for streaming, will check internally for streaming feasibility and will resort to Smart Polling if needed.
    For now, your application code should setup a timeout check on the OpenConnection call and, if it has not returned after this timeout, the application should configure for polling and issue OpenConnection again.
    This is obviously not ideal. Because of the nature of our .Net client it will be used within a properly managed network, so it would in fact be preferable that the software failed to connect rather than resorting to polling.

    Can you think of anything that could be wrong in our code that could be causing this behaviour?

    Many Thanks,
    Steve

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    maybe a server log would help understanding the situation. Is it possible for you to send such log?
    In that case set the level of the LightstreamerLogger.requests category to INFO (its default) do your tests and send us the log (please include both a test with the .NET client and one with the Javascript one so that we can compare them).

    This is obviously not ideal. Because of the nature of our .Net client it will be used within a properly managed network, so it would in fact be preferable that the software failed to connect rather than resorting to polling.
    You'll be able to disable such behavior

  3. #3
    Member
    Join Date
    Jan 2010
    Location
    London
    Posts
    9
    I've been meaning to post a quick heads up as to what was going wrong since we solved the issue (on the Friday of the week of the last post here, sorry about the delay). .Net has a limit on the number of external connections but not internal ones. As such, when running locally all the connections could connect. Running external mean only the first 2 (the .Net default on a 32 bit Vista machine) connections were allowed. The rest received a .Net exception which the Lightstreamer library was catching and throwing it's own (which is why it wasn't trivial to find the solution.). To solve this we increased the .Net limit for external connections. In future we will move to a single connection for all subscriptions.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Hi Stephen,

    Thanks for this update, much appreciated.

    Alessandro

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    About .NET library exception management, which unfortunately has been misleading for you,
    I would like to clarify that the source system exception is available to application code
    as the "InnerException" property of the PushConnException received.

 

 

Similar Threads

  1. Newbie Java Remote Adapter question
    By webmons in forum Adapter SDKs
    Replies: 3
    Last Post: March 7th, 2013, 09:30 AM
  2. Hello World Remote Socket Adapter
    By kclerc in forum Adapter SDKs
    Replies: 7
    Last Post: April 12th, 2010, 11:40 AM
  3. Multiple Connections
    By mnfjorge in forum Client SDKs
    Replies: 1
    Last Post: March 24th, 2010, 08:52 AM
  4. Replies: 3
    Last Post: August 18th, 2008, 12:55 PM
  5. Replies: 1
    Last Post: March 15th, 2007, 02:44 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 09:22 AM.