UNPKG

18.4 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.connectInParallel = connectInParallel;
7exports.connectInSequence = connectInSequence;
8exports.lookupAllAddresses = lookupAllAddresses;
9var _net = _interopRequireDefault(require("net"));
10var _nodeUrl = _interopRequireDefault(require("node:url"));
11var _abortError = _interopRequireDefault(require("./errors/abort-error"));
12function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13async function connectInParallel(options, lookup, signal) {
14 if (signal.aborted) {
15 throw new _abortError.default();
16 }
17 const addresses = await lookupAllAddresses(options.host, lookup, signal);
18 return await new Promise((resolve, reject) => {
19 const sockets = new Array(addresses.length);
20 const errors = [];
21 function onError(err) {
22 errors.push(err);
23 this.removeListener('error', onError);
24 this.removeListener('connect', onConnect);
25 this.destroy();
26 if (errors.length === addresses.length) {
27 signal.removeEventListener('abort', onAbort);
28 reject(new AggregateError(errors, 'Could not connect (parallel)'));
29 }
30 }
31 function onConnect() {
32 signal.removeEventListener('abort', onAbort);
33 for (let j = 0; j < sockets.length; j++) {
34 const socket = sockets[j];
35 if (this === socket) {
36 continue;
37 }
38 socket.removeListener('error', onError);
39 socket.removeListener('connect', onConnect);
40 socket.destroy();
41 }
42 resolve(this);
43 }
44 const onAbort = () => {
45 for (let j = 0; j < sockets.length; j++) {
46 const socket = sockets[j];
47 socket.removeListener('error', onError);
48 socket.removeListener('connect', onConnect);
49 socket.destroy();
50 }
51 reject(new _abortError.default());
52 };
53 for (let i = 0, len = addresses.length; i < len; i++) {
54 const socket = sockets[i] = _net.default.connect({
55 ...options,
56 host: addresses[i].address,
57 family: addresses[i].family
58 });
59 socket.on('error', onError);
60 socket.on('connect', onConnect);
61 }
62 signal.addEventListener('abort', onAbort, {
63 once: true
64 });
65 });
66}
67async function connectInSequence(options, lookup, signal) {
68 if (signal.aborted) {
69 throw new _abortError.default();
70 }
71 const errors = [];
72 const addresses = await lookupAllAddresses(options.host, lookup, signal);
73 for (const address of addresses) {
74 try {
75 return await new Promise((resolve, reject) => {
76 const socket = _net.default.connect({
77 ...options,
78 host: address.address,
79 family: address.family
80 });
81 const onAbort = () => {
82 socket.removeListener('error', onError);
83 socket.removeListener('connect', onConnect);
84 socket.destroy();
85 reject(new _abortError.default());
86 };
87 const onError = err => {
88 signal.removeEventListener('abort', onAbort);
89 socket.removeListener('error', onError);
90 socket.removeListener('connect', onConnect);
91 socket.destroy();
92 reject(err);
93 };
94 const onConnect = () => {
95 signal.removeEventListener('abort', onAbort);
96 socket.removeListener('error', onError);
97 socket.removeListener('connect', onConnect);
98 resolve(socket);
99 };
100 signal.addEventListener('abort', onAbort, {
101 once: true
102 });
103 socket.on('error', onError);
104 socket.on('connect', onConnect);
105 });
106 } catch (err) {
107 if (err instanceof Error && err.name === 'AbortError') {
108 throw err;
109 }
110 errors.push(err);
111 continue;
112 }
113 }
114 throw new AggregateError(errors, 'Could not connect (sequence)');
115}
116
117/**
118 * Look up all addresses for the given hostname.
119 */
120async function lookupAllAddresses(host, lookup, signal) {
121 if (signal.aborted) {
122 throw new _abortError.default();
123 }
124 if (_net.default.isIPv6(host)) {
125 return [{
126 address: host,
127 family: 6
128 }];
129 } else if (_net.default.isIPv4(host)) {
130 return [{
131 address: host,
132 family: 4
133 }];
134 } else {
135 return await new Promise((resolve, reject) => {
136 const onAbort = () => {
137 reject(new _abortError.default());
138 };
139 signal.addEventListener('abort', onAbort);
140 lookup(_nodeUrl.default.domainToASCII(host), {
141 all: true
142 }, (err, addresses) => {
143 signal.removeEventListener('abort', onAbort);
144 err ? reject(err) : resolve(addresses);
145 });
146 });
147 }
148}
149//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfbmV0IiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsInJlcXVpcmUiLCJfbm9kZVVybCIsIl9hYm9ydEVycm9yIiwib2JqIiwiX19lc01vZHVsZSIsImRlZmF1bHQiLCJjb25u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ja2V0ID0gbmV0LmNvbm5lY3Qoe1xuICAgICAgICAgIC4uLm9wdGlvbnMsXG4gICAgICAgICAgaG9zdDogYWRkcmVzcy5hZGRyZXNzLFxuICAgICAgICAgIGZhbWlseTogYWRkcmVzcy5mYW1pbHlcbiAgICAgICAgfSk7XG5cbiAgICAgICAgY29uc3Qgb25BYm9ydCA9ICgpID0+IHtcbiAgICAgICAgICBzb2NrZXQucmVtb3ZlTGlzdGVuZXIoJ2Vycm9yJywgb25FcnJvcik7XG4gICAgICAgICAgc29ja2V0LnJlbW92ZUxpc3RlbmVyKCdjb25uZWN0Jywgb25Db25uZWN0KTtcblxuICAgICAgICAgIHNvY2tldC5kZXN0cm95KCk7XG5cbiAgICAgICAgICByZWplY3QobmV3IEFib3J0RXJyb3IoKSk7XG4gICAgICAgIH07XG5cbiAgICAgICAgY29uc3Qgb25FcnJvciA9IChlcnI6IEVycm9yKSA9PiB7XG4gICAgICAgICAgc2lnbmFsLnJlbW92ZUV2ZW50TGlzdGVuZXIoJ2Fib3J0Jywgb25BYm9ydCk7XG5cbiAgICAgICAgICBzb2NrZXQucmVtb3ZlTGlzdGVuZXIoJ2Vycm9yJywgb25FcnJvcik7XG4gICAgICAgICAgc29ja2V0LnJlbW92ZUxpc3RlbmVyKCdjb25uZWN0Jywgb25Db25uZWN0KTtcblxuICAgICAgICAgIHNvY2tldC5kZXN0cm95KCk7XG5cbiAgICAgICAgICByZWplY3QoZXJyKTtcbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCBvbkNvbm5lY3QgPSAoKSA9PiB7XG4gICAgICAgICAgc2lnbmFsLnJlbW92ZUV2ZW50TGlzdGVuZXIoJ2Fib3J0Jywgb25BYm9ydCk7XG5cbiAgICAgICAgICBzb2NrZXQucmVtb3ZlTGlzdGVuZXIoJ2Vycm9yJywgb25FcnJvcik7XG4gICAgICAgICAgc29ja2V0LnJlbW92ZUxpc3RlbmVyKCdjb25uZWN0Jywgb25Db25uZWN0KTtcblxuICAgICAgIC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