PDA

View Full Version : OnSessionStarted(bool isPolling)


AidasOzelis
05-26-2010, 11:13 AM
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.

DarioCrivelli
05-27-2010, 10:37 AM
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.

DarioCrivelli
05-27-2010, 10:47 AM
Connection pool management methods seems to be hidden under the System.Net.ServicePoint class.

Alessandro
05-27-2010, 11:06 AM
@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.

AidasOzelis
06-01-2010, 04:22 PM
Alessandro, this is for our intergration tests, we are testing snapshot updates for our data providers.