当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net - Why they created a timeout

问题描述:

if u add this to web.config, then if a page have gone through long process, the client will not have a timeout exception.

<httpRuntime maxRequestLength="1024000" executionTimeout="36000"/>

they are timing out things for a purpose, what is it?, I tried to create a website with two pages I make a button in default1.aspx wait for 5 minutes. the other page requesting is not affected by that.

thanks

网友答案:

not 100% sure I follow you but the purpose of a timeout is to ensure a client does not wait indefinitely for a response that may not come, it is part and parcel of working in a stateless environment.

网友答案:

So clients can't tie precious server resources...

网友答案:

Request timeouts server-side are one thing, however IE and other browsers also have request timeouts. If you're performing something costly server-side use a status area instead of Request-Response to deal with processing.

分享给朋友:
您可能感兴趣的文章:
随机阅读: