长时间请求 报 Thread was being aborted 异常

Posted skmobi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了长时间请求 报 Thread was being aborted 异常相关的知识,希望对你有一定的参考价值。

事件起于生产一个接口大批量超过,导致接口超时,数据跑了一半没跑完。前期以前是代码问题,在本地测试不会重现。后面发现是有个配置需要设置。

1.asp.net iis 配置的默认请求是120秒,如果超过120,请求会被中断,抛出异常

System.Threading.ThreadAbortException: Thread was being aborted.
解决办法
1.修改iis请求120限制
技术图片
2.修改web.config配置
技术图片
注意:debug 必须 是false 否则不生效,executionTimeOut 不设置 默认 90秒,提高executionTimeout 配置  单位 秒
iis 跟web.config 都设置了 会取较大值,作为请求超时时间。
 

以上是关于长时间请求 报 Thread was being aborted 异常的主要内容,如果未能解决你的问题,请参考以下文章

解决:elasticsearch 更新报错:The number of object passed must be even but was [1]

greenplum master节点日志报错 ERROR: tuple to be updated was already moved to another segment due to concur

greenplum master节点日志报错 ERROR: tuple to be updated was already moved to another segment due to concur

greenplum master节点日志报错 ERROR: tuple to be updated was already moved to another segment due to concur

Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总

Elasticsearch6.8局部更新索引数据报错:The number of object passed must be even but was [1]