diff --git a/src/app.ts b/src/app.ts index 1a2ec796..6b2e556a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -2,6 +2,10 @@ import { set } from '@balena/es-version'; // Set the desired es version for downstream modules that support it, before we import any set('es2019'); +import { setDefaultAutoSelectFamilyAttemptTimeout } from 'net'; +// Increase the timeout for the happy eyeballs algorithm to 5000ms to avoid issues on slower networks +setDefaultAutoSelectFamilyAttemptTimeout(5000); + import { NOTFOUND } from 'dns'; import mdnsResolver from 'mdns-resolver';