cristianotestai Posted February 10, 2015 Posted February 10, 2015 Hi Farshad, I found a situation using Recovery Failure with my project that uses a TUniTimer to check for new messages between users logged. The scenario is as follows: I have a TUniTimer with 2 seconds(interval) , where i see if a particular string variable has some value. If at some point the server crashed for any reason, the browse appears Recovery Mask properly. Returning the server, the session receive a "Invalid Session" correctly. In InvalidSession Template i'm redirecting to the main page of the application. The big problem is that if the server returned in 2 minutes, for example, is performed several times the redirect to the main page of the application, because somehow in the time it was out, every 2 seconds the session was generating a request to the server (TUniTimer), and returning the server, every time from the time it was unavailable, requests were again generated. I understand the functioning of Recovery Failure, but for the same session, only one request (the first that identified the connection loss) should be processed again, because this time of disconnection, nothing can be accomplished. If possible, could show you this bad behavior accessing my PC. Thanks. Cristiano Quote
Administrators Farshad Mohajeri Posted February 10, 2015 Administrators Posted February 10, 2015 It is not likely to happen. First redirection will reload a new page and unloads the current "failed page" which indeed cancels all pending requests from the failed page. Quote
Administrators Farshad Mohajeri Posted February 10, 2015 Administrators Posted February 10, 2015 Can you send a small demo project containing your redirection code? Quote
cristianotestai Posted February 10, 2015 Author Posted February 10, 2015 Can you send a small demo project containing your redirection code? InvalidTemplate code: <script type="text/javascript"> window.location.reload(); </script> but, occours same behavior with: <html> <script> document.location ="[###url###]"; </script> </html> or <script type="text/javascript"> window.location="[###url###]"; </script> Farshad, if you can connect to my PC, it would very quickly show, but if not, I see to create a small project. Thanks again! Quote
Administrators Farshad Mohajeri Posted February 10, 2015 Administrators Posted February 10, 2015 I need to test it on my PC to closely examine the process. Please send a test case if you can. Thank you Quote
cristianotestai Posted February 11, 2015 Author Posted February 11, 2015 I need to test it on my PC to closely examine the process. Please send a test case if you can. Thank you Hi Farshad, Test Case sent in Active BugReports. Best Regards, Cristiano Quote
Administrators Farshad Mohajeri Posted February 11, 2015 Administrators Posted February 11, 2015 Hi Farshad, Test Case sent in Active BugReports. Best Regards, Cristiano Yes, I will investigate. Thx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.