Discuss: Network failure - application reaction (9.17 update)

来源:互联网 发布:用友网络市值 编辑:程序博客网 时间:2024/06/05 23:47

昨天我们组的一个组员提出了一个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.

 

Firstcase:the connection between client and web-server failed.

1.     Clientsend request to server normally

2.     Noresponse, waiting

3.     Sessiongets expired, give no response warning message

 

Secondcase:the connection between web-server and database failed.

1.     Errorcode returned to server

2.     Serverparse the code and tell client side what happened

3.     Clientside displays error message like “The connection attempt failedbecause the network is busy.

 

原创粉丝点击