Lines Matching refs:requests
106 this.requests = ObjectCreate(null);
139 const requests = this.requests[name];
140 if (requests && requests.length) {
141 const req = ArrayPrototypeShift(requests);
153 if (requests.length === 0) {
154 delete this.requests[name];
159 // If there are no pending requests, then put it in
297 if (!this.requests[name]) {
298 this.requests[name] = [];
301 // Used to create sockets for pending requests from different origin
306 ArrayPrototypePush(this.requests[name], req);
448 if (this.requests[name] && this.requests[name].length) {
450 req = this.requests[name][0];
453 // There might be older requests in a different origin, but
454 // if the origin which releases the socket has pending requests
456 const keys = ObjectKeys(this.requests);
463 req = this.requests[prop][0];
471 // If we have pending requests and a socket gets closed make a new one