-
May 24th, 2010, 09:29 AM
#1
Reconnection attempts fail
Hi,
Since the Silverlight API does not provide the LSProxy class, I'm implementing a mechanism that automatically reconnect my application to the Lightstreamer server in case the connection drops. Currently I'm doing this by periodically trying to reconnect to the server. It works quite fine in case the connection is lost after it is established.
However, my client code is able only to re-establish a connection only if the very first connection attempt is successful. If it's not (like when the Lightstreamer server is not running when the first connection is attempted), then all subsequent connection attempts will fail; the only way to connect again to the Lightstreamer server is to restart the client.
Is that a known problem with the Siilverlight API? What further information can I provide you to help you diagnosing the problem?
Regards,
Emilio Bova
PS
Will the LSProxy class be ported to Silverlight? It would provide all the functionalities I need to implement.
-
May 24th, 2010, 02:48 PM
#2
Hi,
that's an issue with Silverlight. The problem is that if the silverlight engine does not receive the clientaccesspolicy.xml file the fist time it tries to download it, then it will never try again to download it assuming that it has no permission to connect (you can see that if the server is down the exception thrown is security related).
A workaround could be to have some aliases for the server machine and then, if a connection fails due to security problems, try with a different alias.
HTH
-
May 26th, 2010, 04:34 PM
#3
Hi Mone,
Thanks for your answer... I suspected as much, since I observed that in the faulty case, no requests were sent from the Silverlight API on the net.
However, googling around I found this post
http://forums.silverlight.net/forums...93/263003.aspx
At the very bottom, it is stated that the bug has been fixed in Silverlight 4 RC, so I'd expect the fix to be in the RTM version.
Will a Lightstreamer API that targets Silverlight 4 be released?
Regards,
Emilio Bova
-
May 27th, 2010, 10:16 AM
#4
Emilio,
Thanks for pointing out that link.
Regarding Silverlight 4, we will be running some tests with Lightstreamer in the next few weeks. By the way, have you already had a chance to test our current API against Silverlight 4?
Ciao e grazie,
Alessandro
-
May 27th, 2010, 04:47 PM
#5
Originally Posted by
Alessandro
Emilio,
Thanks for pointing out that link.
Regarding Silverlight 4, we will be running some tests with Lightstreamer in the next few weeks. By the way, have you already had a chance to test our current API against Silverlight 4?
Ciao e grazie,
Alessandro
Not yet, but I'll be doing it (hopefully) soon.
I'll post an update as soon as I have news.
Grazie,
Emilio Bova
-
May 28th, 2010, 11:41 AM
#6
Hi,
I did some tests with a Silverlight 4 application, Lightstreamer server 3.6 build 1463, SL API 1.2.0.0.
It appears that the client is able to reconnect to the server even if the very first attempt fails, but not always. I did not thoroughly debug the failing cases, but, given the results, I suspect the cause might lie in the Lightstreamer SL API and not in the SL framework.
Going back to my other original question, do you plan to port LSProxy class' functionalities to Silverlight API?
Ciao,
Emilio Bova
-
May 28th, 2010, 03:55 PM
#7
Just to add some new info.
I fixed a couple of problems in my code and reconnection after first failure has never failed again since then.
Ciao,
Emilio Bova
-
June 3rd, 2010, 10:37 AM
#8
Emilio,
The current plan is to enhance the Silverlight Demo to show how to manage automatic reconnections and resubscriptions, rather than porting the LSProxy class.
-
June 4th, 2010, 02:02 PM
#9
Hi Alessandro,
Thanks for the information.
Emilio
-
July 22nd, 2010, 03:24 PM
#10
Originally Posted by
Alessandro
Regarding Silverlight 4, we will be running some tests with Lightstreamer in the next few weeks. By the way, have you already had a chance to test our current API against Silverlight 4?
I ran some tests with Silverlight 4 and I confirm that the current library is already compatible with the Silverlight 4 SDK
Similar Threads
-
By LS_Developer in forum Client SDKs
Replies: 7
Last Post: June 14th, 2012, 08:35 AM
-
By dimitarn in forum General
Replies: 3
Last Post: March 30th, 2010, 11:13 AM
-
By wwatts in forum Client SDKs
Replies: 1
Last Post: January 7th, 2010, 09:45 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 04:16 PM.
Bookmarks