mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 10:14:49 +00:00
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.
|
* megabytes each.
|
||||||
*/
|
*/
|
||||||
_fetchFromURI(uri: string, callback: FetchCallback) {
|
_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) {
|
if (error != null) {
|
||||||
callback(error);
|
callback(error);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user