Skip to content

Commit

Permalink
fix: repair timeout excepiton (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhang002 authored and binghaiwang committed Jun 7, 2018
1 parent b6dc1df commit ec8ae25
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions shims/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var util = require('util');
var urlutil = require('url');
var http = require('http');
var https = require('https');
var capability = require('stream-http/lib/capability');
var debug = require('debug')('urllib');
var ms = require('humanize-ms');

Expand Down Expand Up @@ -33,7 +32,7 @@ function makeCallback(resolve, reject) {
}

// exports.TIMEOUT = ms('5s');
exports.TIMEOUTS = [ms('60s'), ms('60s')];
exports.TIMEOUTS = [ms('300s'), ms('300s')];

var TEXT_DATA_TYPES = [
'json',
Expand Down Expand Up @@ -147,10 +146,6 @@ exports.requestWithCallback = function requestWithCallback(url, args, callback)
options.requestTimeout = args.timeout;
}

if (capability.abortController) {
options.mode = 'disable-fetch';
}

var sslNames = [
'pfx',
'key',
Expand Down

0 comments on commit ec8ae25

Please sign in to comment.