-
May 26th, 2010, 10:13 AM
#1
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.
-
May 27th, 2010, 09:37 AM
#2
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.
-
May 27th, 2010, 09:47 AM
#3
Connection pool management methods seems to be hidden under the System.Net.ServicePoint class.
-
May 27th, 2010, 10:06 AM
#4
@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.
-
June 1st, 2010, 03:22 PM
#5
Alessandro, this is for our intergration tests, we are testing snapshot updates for our data providers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:42 AM.
Bookmarks