mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +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.
|
||||
*/
|
||||
_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…
x
Reference in New Issue
Block a user