packager: socket timeout for global cache

Reviewed By: davidaurelio

Differential Revision: D4393059

fbshipit-source-id: 23c0c9ab69388ffd6de136d07728d44d1d8a947a
This commit is contained in:
Jean Lauliac 2017-01-09 11:11:07 -08:00 committed by Facebook Github Bot
parent 4f60ac40fc
commit e2a5bc1a35
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ class GlobalTransformCache {
* megabytes each.
*/
_fetchFromURI(uri: string, callback: FetchCallback) {
request.get({uri, json: true}, (error, response, unvalidatedResult) => {
request.get({uri, json: true, timeout: 4000}, (error, response, unvalidatedResult) => {
if (error != null) {
callback(error);
return;