erich.wanker Posted September 3, 2015 Posted September 3, 2015 Hi .. i have a little problem with "ConnectionFailureRecovery" ... if i start the UniGUI application in 2 Tabs of Chrome-browser and work in Tab1 - sometimes the ConnectionFailureRecovery-Mask is comming and i must wait 10 Seconds to work again .. (the pause is in different situations.. i cant find a rule) In the mean time i can work in 2nd Tab without problems since the 2nd tab shows the ConnectionFailureRecovery-Mask ... it seems that the unigui-Application (the Session??) makes a short rest ... and the ConnectionFailureRecovery-Mask needs minimum 10 seconds to check if everything works fine the behavior (server-side) is on different Server-systems the behavior (client-side) is stronger on apple-Safari browser .. the ConnectionFailureRecovery-Mask is shown on differnt hardware (using Safari Browser) 10 times more often when on windows-machines with chrome browser ... (in same network ) if i deactivate the "ConnectionFailureRecovery" - a form is shown with "Server unaviable" .. but i can work without problems in Browser-Tab 2 .. on my testmachine - the server is on localhost !!!! and i got the same behavior -- What can i do to reduce the 10 seconds pause of the ConnectionFailureRecovery-Mask ? -- What can i do to find the reason for the pause ? here is my "ServerModule" object UniServerModule: TUniServerModule OldCreateOrder = False AutoCoInitialize = True FilesFolder = 'files\' TempFolder = 'temp\' ExtRoot = 'extjs\' UniRoot = 'uni\' SessionTimeout = 72000000 Title = 'Betriebsleitersoftware' BGColor = 13809322 CharSet = 'utf-8' FaviconOptions = [foVisible, foLocalCache] AjaxTimeout = 72000000 DefaultImageFormat = cfJpeg SuppressErrors = [errObjectNotFound, errAjax] UnavailableErrMsg = 'Der Server ist momentan nicht erreichbar, bitte versuchen sie es' + ' sp'#228'ter nochmal.' LoadingMessage = 'Loading ...' Bindings = <> MainFormDisplayMode = mfPage CustomFiles.Strings = ( 'files/js/effects.js') CustomCSS.Strings = ( '</style> ' '<link rel=stylesheet href="/files/css/sec.css" />' '<style type="text/css">' '') CustomMeta.Strings = ( '<META http-equiv="Content-Language" content="de">' '<META http-equiv="Language" content="de">' '<META http-equiv="ROBOTS" content="NONE">' '<script src="files/js/TweenMax.min.js"></script>' ServerMessages.ExceptionTemplate.Strings = ( '<script type="text/javascript">' '<!--' 'window.location.reload();' '//-->' '</script>') ServerMessages.InvalidSessionTemplate.Strings = ( '<script type="text/javascript">' '<!--' 'window.location.reload();' '//-->' '</script>') ServerMessages.TerminateTemplate.Strings = ( '<script type="text/javascript">' '<!--' 'window.location.reload();' '//-->' '</script>') ServerMessages.InvalidSessionMessage = 'Ung'#252'ltige Sicherheits-ID' ServerMessages.TerminateMessage = 'Sicherheits-ID abgelaufen' AllowWebMonitor = False ExtLocale = '[Auto]' Compression.Level = zcFastest Compression.MinTextSize = 128 ServerLimits.MaxRequests = 1000 SSL.SSLOptions.RootCertFile = 'root.pem' SSL.SSLOptions.CertFile = 'cert.pem' SSL.SSLOptions.KeyFile = 'key.pem' SSL.SSLOptions.Method = sslvSSLv3 SSL.SSLOptions.SSLVersions = [sslvSSLv3] SSL.SSLOptions.Mode = sslmUnassigned SSL.SSLOptions.VerifyMode = [] SSL.SSLOptions.VerifyDepth = 0 Options = [soRestartSessionOnTimeout] ConnectionFailureRecovery.ErrorMessage = 'Keine Verbindung zum MountainOffice-Server ' ConnectionFailureRecovery.RetryMessage = 'Suche Server ...' ConnectionFailureRecovery.TextColor = clWhite UniMobileRoot = 'unim\' TouchRoot = 'touch\' Height = 746 Width = 901 end 1 Quote
Administrators Farshad Mohajeri Posted September 3, 2015 Administrators Posted September 3, 2015 SessionTimeout = 72000000AjaxTimeout = 72000000 These values are too big. Pls set them to 600000 and 30000 and test again. Connection failure occurs when browser can not get a response within AjaxTimeout seconds (30 secs default) or a connection fails. You should never get this on "localhost" unless something in your app badly fails and connection is dropped. In this case you must see logs. 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.