-
December 15th, 2008, 11:44 AM
#1
Hi Mone,
You can see in my code, I am setting setTimeoutForStalled, setTimeoutForReconnect, setRetryTimeout for the connection policy. I have set respectively, 2, 15 and 5 seconds. But even after waiting for 3-4 min, I am not getting to know in any of my callback listeners when is the server actually down. The Flex App is just stuck in waiting mode.
Also the doc says only for setRetryTimeout the argument in millisec, so i assumed that for the remaining methods args may or may not be in millisec and tried with both type of arguments(sec and millisec). But, still no use.
Can you please tell me the configuration so that as soon as server is down I get an alert stating that server down?
Thanks,
Shreyas
-
December 15th, 2008, 12:38 PM
#2
Such timeouts are used internally to decide when to perform new attempts, but as said in my previous message it is correct that the client remains in the CONNECTING status.
If you start the server you'll notice that accordingly to the set timeouts the client will reconnect correctly to the server.
What I meant is that you could set your own timeout to fire a callback after a while and then check if the client is connected or is still CONNECTING. You can set a timeout using the Timer class or the setTimeout method of flex.
If you'd like to know when attempts are performed you can enable the client logging ( see http://www.lightstreamer.com/docs/cl...ge-detail.html ) and then check the logs.
-
December 15th, 2008, 01:23 PM
#3
Oh, ok.. I understand what you mean.
But, just consider this as a feature request.. It will be nice if I can get a handle when LSClient tries to reconnect or when suddenly server goes down. I would like to display the status on the UI saying disconnected, connecting in these many seconds..
Thanks a lot for making me understand this subject.
-
December 15th, 2008, 01:26 PM
#4
We'll take your request into consideration for a future release.
Note that if the server goes down while you're already connected you'll notice a status change through the status callback.
-
December 15th, 2008, 01:27 PM
#5
Yup, I did observe that. Will use that to display disconnected status :-)
Similar Threads
-
By ulises.juarez in forum General
Replies: 3
Last Post: July 29th, 2011, 08:56 AM
-
By lizsedley in forum Client SDKs
Replies: 1
Last Post: October 21st, 2009, 10:19 AM
-
By jondcruz in forum General
Replies: 1
Last Post: September 18th, 2009, 09:13 AM
-
By gerald.logor in forum Client SDKs
Replies: 1
Last Post: November 5th, 2007, 01:36 PM
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 10:49 PM.
Bookmarks