-
June 6th, 2008, 10:11 AM
#1
Client alert with error 120
Hello! We get the 120 error occasionally and we suppose it is a network connectivity issue.
We don't even hit the onSimilarEngineFound as we don't have a case where the same application name is used from the same host in a single browser instance more than once.
So my question is what are the possible reasons for this error to occur?
-
June 9th, 2008, 02:07 PM
#2
It's difficult to know what's the reason you've seen such message, but I can explain when the alert is shown so that maybe we can understand it together:
When a client tries to connect to a server (or tries to subscribe to a table) and fails it checks if there are other clients connected to the same server on the same browser instance. If it finds that maybe there are other engines connected to such server it guess that the reason it failed to connect is that the limit of concurrent connections per server was exhausted.
Such limit should be 2 by HTTP specs, but it vary from browser to browser.
Which browser were you using?
After the alert was the client able to connect?
Was it true that others clients were open on the same browser (the onSimilarEngineFound is by default NEW_SESSION so that if you don't set it and open 2 tabs with the same application than both will create their engine and connect to the server)
Note that you can avoid the alert from being shown reimplementing onClientAlert methods:
http://www.lightstreamer.com/docs/cl...#onClientAlert
http://www.lightstreamer.com/docs/cl...#onClientAlert
about the 2 connections limit check http specs on [Page 46]:
http://www.ietf.org/rfc/rfc2616.txt
HTH.
-
July 30th, 2008, 07:36 PM
#3
Hi,
I'm able to reproduce this error in IE with two browsers.
Steps to reproduce:
1. Browser1 will establish lightstreamer connection.
2. Use Cntrl+N to open browser2.
Browser2 is throwing 'Error 120'.
Any idea which property is common between these two, causing this error?
Thanks
DK
-
July 31st, 2008, 09:14 AM
#4
Hi DK,
Make sure you use "SHARE_SESSION" as the third parameter of your createEngine() call. The explanation is that opening multiple IE windows with CTRL+N, you still have one process instance, not multiple. So you should avoind saturating the browser's connection pool. The trick is to use one single shared stream connection for all the windows and you can achieve that by using the "SHARE_SESSION" parameter.
Similar Threads
-
By enrico in forum Client SDKs
Replies: 2
Last Post: March 1st, 2012, 01:53 PM
-
By lethanhclub in forum Adapter SDKs
Replies: 6
Last Post: September 16th, 2009, 10:26 AM
-
By jkrohn in forum Client SDKs
Replies: 3
Last Post: September 1st, 2009, 08:48 AM
-
By jmccoy in forum General
Replies: 2
Last Post: March 31st, 2008, 03:38 PM
-
By kg_can in forum Client SDKs
Replies: 1
Last Post: March 7th, 2008, 09:11 AM
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 01:26 PM.
Bookmarks