如何抑制连接超时错误? [英] How to Supress Connection TimeOut error?

查看:95
本文介绍了如何抑制连接超时错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

谁能告诉我如何抑制connecton超时错误


问候
NirmalaSaravanan

hi

Can anybody tell me how to supress connecton timeout error


Regards
NirmalaSaravanan

推荐答案



超时错误有多种原因,
所以您只需检查一下调试,
如果有一个查询的执行时间比服务器响应时间长,那么您只需找出原因,这就是您要优化查询以解决会话超时错误的原因,


祝你好运


there are multiple reason for timeout error,
so you just check through debugging,
if there are one of query whose execution time is so long than server responding time, so you just find out this,and this is a reason then you just optimize your query for resolving session timeout error,


good luck


为什么要压抑它?应该处理.

为了跟踪它们,只需将与超时相关的代码放在try-catch块中.
Why do you want to suppress it? It should be handled.

In order to keep a track of them, just put the code related to timeout in try-catch block.
try
{
   //Probable Connection timeout code
   //e.g.: Connect to DB code
   // Do your stuff
}
catch (Exception ex)
{
   // Log it
   // Or eat it!
}


这篇关于如何抑制连接超时错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆