File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6262 "watch" : " ^0.16.0"
6363 },
6464 "dependencies" : {
65- "extend" : " ^2.0.1"
65+ "extend" : " ^2.0.1" ,
66+ "linkedlist" : " ^1.0.1"
6667 }
6768}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ var http = require('http');
33var parseUrl = require ( 'url' ) . parse ;
44var once = require ( './once' ) ;
55var joinPath = require ( 'path' ) . join ;
6+ var LinkedList = require ( 'linkedlist' ) ;
67
78function rawCopy ( obj ) {
89 var data = { } ;
@@ -17,7 +18,7 @@ function rawCopy(obj) {
1718module . exports = function ( baseUrl , agent , agentOptions ) {
1819 if ( ! agent && http . Agent ) agent = new http . Agent ( agentOptions ) ; // server only
1920
20- var queue = [ ] ;
21+ var queue = new LinkedList ( ) ;
2122 var maxTasks = typeof agent . maxSockets === 'number' ? agent . maxSockets * 2 : Infinity ;
2223 var activeTasks = 0 ;
2324 var baseUrlParts = rawCopy ( parseUrl ( baseUrl ) ) ;
You can’t perform that action at this time.
0 commit comments