Update happy-eyeballs.ts

This commit is contained in:
Max Schmitt 2024-06-25 18:35:03 +02:00 committed by GitHub
parent ce877e8732
commit 6c601ec97c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,8 +46,8 @@ class HttpsHappyEyeballsAgent extends https.Agent {
}
// These options are aligned with the default Node.js globalAgent options.
export const httpsHappyEyeballsAgent = new HttpsHappyEyeballsAgent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 });
export const httpHappyEyeballsAgent = new HttpHappyEyeballsAgent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 });
export const httpsHappyEyeballsAgent = new HttpsHappyEyeballsAgent({ keepAlive: true });
export const httpHappyEyeballsAgent = new HttpHappyEyeballsAgent({ keepAlive: true });
export async function createSocket(host: string, port: number): Promise<net.Socket> {
return new Promise((resolve, reject) => {