Changes between Version 1 and Version 2 of MapGuideRfc66
- Timestamp:
- 06/16/09 19:52:47 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc66
v1 v2 28 28 == Motivation == 29 29 30 Customer reports that if leave the browser open for some while without any operation, the session will timeout and can’t get informed. If server is down the error message is not easy to read and user can’t figure out what happens. 31 The use cases would be: 32 1. If the Http session is timeout, the user should be informed about the fact instead of getting some script errors or meaningless error messages. 33 2. If the MapGuide Server session is timeout, the user should be informed about the fact instead of getting some script errors or some meaningless error messages. 30 Customer reports that if leave the browser open for some while without any operation, the session will timeout and can’t get informed. If server is down the error message is not easy to read and user can’t figure out what happens.[[BR]] 31 The use cases would be:[[BR]] 32 1. If the Http session is timeout, the user should be informed about the fact instead of getting some script errors or meaningless error messages.[[BR]] 33 2. If the MapGuide Server session is timeout, the user should be informed about the fact instead of getting some script errors or some meaningless error messages.[[BR]] 34 34 3. If the connection to MapGuide Server is broken, the user should be informed by a friendly message which helps the user know what's happening instead of getting a kind of "exception stack trace" message box. 35 35 36 36 == Proposed Solution == 37 37 38 The possible solutions could be: 39 1. Implement a script which pings the servers periodically to keep the both sessions alive (from browser to web extension and from web extension to server). 38 The possible solutions could be:[[BR]] 39 1. Implement a script which pings the servers periodically to keep the both sessions alive (from browser to web extension and from web extension to server). [[BR]] 40 40 2. Refine the code handling the "connection broken" exception to provide more friendly messages. 41 41 42 42 == Implications == 43 43 44 1. Keep alive 45 a. Ajax viewer pings server periodically by calling “GetFeatureProviders” (the most lightweight function). 46 b. Fusion viewer pings server periodically by calling Common.php which will refresh connection. 47 2. Refine “connection broken” exception handling 44 1. Keep alive[[BR]] 45 a. Ajax viewer pings server periodically by calling “GetFeatureProviders” (the most lightweight function).[[BR]] 46 b. Fusion viewer pings server periodically by calling Common.php which will refresh connection.[[BR]] 47 2. Refine “connection broken” exception handling[[BR]] 48 48 Catch the exception and show a readable message. 49 49