timeout && 并发 的bug
Closed this issue · 4 comments
peng2e commented
设置了timeout ,并发请求会cancled掉前面的一个请求~ 大bug!!! 速度解决……
ISAISAI commented
遇到同样问题
ISAISAI commented
setTimeout(function () {
if (t.api.pending && t.api._requester) {
// 取消请求
t.api.abort();
var error = {
timeout: TRUE$$1,
message: 'Timeout By ' + config.timeout + 'ms.'
};
defer.reject(error);
event.fire('g.reject', [error, config]);
event.fire(t.api.contextId + '.reject', [error, config]);
}
}, config.timeout);
kcshan commented
遇到同样问题,线上bug
jias commented
fixed in v2.3.0