revert maxlisteners change
This commit is contained in:
parent
20bcb49bd6
commit
5cf1003575
|
|
@ -496,8 +496,6 @@ export abstract class APIRequestContext extends SdkObject {
|
||||||
tcpConnectionAt = happyEyeBallsTimings.tcpConnectionAt;
|
tcpConnectionAt = happyEyeBallsTimings.tcpConnectionAt;
|
||||||
|
|
||||||
// non-happy-eyeballs sockets
|
// non-happy-eyeballs sockets
|
||||||
socket.setMaxListeners(100); // default is 10. there might be more than 10 requests to the same server in parallel, and they all use the same socket
|
|
||||||
|
|
||||||
const onLookup = () => { dnsLookupAt = monotonicTime(); };
|
const onLookup = () => { dnsLookupAt = monotonicTime(); };
|
||||||
socket.once('lookup', onLookup);
|
socket.once('lookup', onLookup);
|
||||||
cleanup.push(() => socket.removeListener('lookup', onLookup));
|
cleanup.push(() => socket.removeListener('lookup', onLookup));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue