Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.1k views
in Technique[技术] by (71.8m points)

前端大数据量查询时,如何避免超时。

用的umi-request的请求库,类似axios。前端调用后端接口,由于后端需要调用第三方数据故需要耗时几分钟,但是防止前端出现超时已经将timeout设置为60分钟,但是还是会出现超时,请问大佬们这个怎么办。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

chrome浏览器默认超时时间是5min好像。如果没超过5分钟的话,可能是nginx超时时间引起的,nginx默认超时时间好像是180s。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...