Delay in Creating/Connecting New WebSocketSession

Jun 4, 2012 at 11:54 PM

I noticed that it takes around 1-2 minute for creating/connection new Session at websocketserver. 

I am using the Live Chat Example included in Samples. Once the new session is connected the methods (SendAll, SendResponse etc) works great but creating new session and connecting a new client to WebSocketServer takes almost 60-120 seconds.  

This will be even worse if multiple clients are connecting to the server for Broadcast service etc. 

I also noticed that you are 'locking' m_SessionSyncRoot and m_SecureSessionSyncRoot in Globax.asax several times. I wonder if this is creating the delay in creating new sessions. 

In WebSocketSession.cs I see 'lock' on m_SendingQueue few times as well.

I am wondering use SuperWebSocket Server with multiple clients/sessions where it works more efficiently and fast.

Any help is highly appreciated. Thanks a lot! 

Coordinator
Jun 16, 2012 at 6:08 PM

60-120 seconds?

No one reported this problem? Could you check it on another PC?