Skip to content

Commit

Permalink
global: remove socket limit - fixes googleapis#522
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed May 4, 2015
1 parent 98a2153 commit 5e28aa9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

var extend = require('extend');
var GoogleAuth = require('google-auth-library');
var request = require('request');
var request = require('request').defaults({
pool: {
maxSockets: Infinity
}
});
var nodeutil = require('util');
var uuid = require('node-uuid');

Expand Down
6 changes: 5 additions & 1 deletion lib/datastore/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
'use strict';

var streamEvents = require('stream-events');
var request = require('request');
var request = require('request').defaults({
pool: {
maxSockets: Infinity
}
});
var through = require('through2');

/**
Expand Down
6 changes: 5 additions & 1 deletion lib/storage/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ var crypto = require('crypto');
var duplexify = require('duplexify');
var fs = require('fs');
var once = require('once');
var request = require('request');
var request = require('request').defaults({
pool: {
maxSockets: Infinity
}
});
var streamEvents = require('stream-events');
var through = require('through2');

Expand Down

0 comments on commit 5e28aa9

Please sign in to comment.