Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2009
    Location
    London
    Posts
    14

    Question OnSessionStarted(bool isPolling)

    Hi,

    We have two connections to the same adapter set in one application. First connection allways connects in a push mode (isPolling = false), second one usually in a polling mode, but sometimes it is able to connect in push mode as well. Is there a way to force the connection to connect in a push mode?

    Thanks.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    The .NET environment might be using a connection pool for HTTP requests of just 2 connections.
    This would be OK for managing a single session;
    however, with more than one session, some requests might be delayed and the Server might recover from the delays by resorting to polling.

    Can you inspect in some way which is the connection pool size on your client? We could also try to find some evidence of that by analyzing the Server log, with the LightstreamerLogger.connections category set as INFO level.

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    Connection pool management methods seems to be hidden under the System.Net.ServicePoint class.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    @Aidas, Could you please shed some light on why you need to create two sessions from the same client? I can't imagine any obvious reason to do that.

  5. #5
    Member
    Join Date
    Jul 2009
    Location
    London
    Posts
    14
    Alessandro, this is for our intergration tests, we are testing snapshot updates for our data providers.

 

 

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:44 PM.