昨天我们组的一个组员提出了一个Raliability issue。问题是说当一个web application在访问服务器时,网络断开,应该给用户什么样的错误信息。我将问题总结了一下,和developer leader讨论后,他们认为很难定位并改进这个问题,因为系统并不能捕获server端没有相应的真正原因。我想在网络上寻求expected behavior的解决方案,但是百度上中文搜索,似乎没有人讨论相关话题,google上英文搜索倒是有些tolerant message的文档,貌似非常复杂,正在研究中。。。
也许这个问题在真实的系统测试中并不被看中,或是在用户端也并不是重要的问题。但,我想既然Microsoft IE Browser 可以将问题分类解决的这么彻底(refer to http://technet.microsoft.com/en-us/library/cc773153(WS.10).aspx ),我们也应该严谨一些。
(9.17更新)
以下是初步解决方案 (我现在比较喜欢且习惯用ppt画图解释问题,呵呵)
Strictly, the problem could be classified with two categories.
First case : the connection between client and web-server failed.
1. Client send request to server normally
2. No response, waiting
3. Session gets expired, give no response warning message
Second case : the connection between web-server and database failed.
1. Error code returned to server
2. Server parse the code and tell client side what happened
3. Client side displays error message like “ The connection attempt failed because the network is busy. ”