packager: socket timeout for global cache
Reviewed By: davidaurelio Differential Revision: D4393059 fbshipit-source-id: 23c0c9ab69388ffd6de136d07728d44d1d8a947a
This commit is contained in:
parent
4f60ac40fc
commit
e2a5bc1a35
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue