-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
request/tunnel-agent
#22Labels
Description
I have about 10 million requests in a project, but I could never get response for some request.Here is my code:
let options = {timeout:15000,encoding:null,gzip:true,time:true,headers:{}};
options.uri = "xxxxx";
options.proxy="xxxxxx";
debug("Requesting: %s", options.uri);
request(options, (err,res) => {
debug("Requested: %s", options.uri);
if(err)
return reject(err);
resolve();
});
I simplify the code for guys to better understand, let's call n("string") as "number of string" in log, then the problem is n("Requesting")>n("Requested")
What's your advice?